// Copyright 2021-2025 Buf Technologies, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//      http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

// source: google/api/expr/v1alpha1/checked.proto
/**
 * @fileoverview
 * @enhanceable
 * @suppress {missingRequire} reports error on implicit type usages.
 * @suppress {messageConventions} JS Compiler reports an error if a variable or
 *     field starts with 'MSG_' and isn't a translatable message.
 * @public
 */
// GENERATED CODE -- DO NOT EDIT!
/* eslint-disable */
// @ts-nocheck

var jspb = require('google-protobuf');
var goog = jspb;
var global = globalThis;

var google_api_expr_v1alpha1_syntax_pb = require('../../../../google/api/expr/v1alpha1/syntax_pb.js');
goog.object.extend(proto, google_api_expr_v1alpha1_syntax_pb);
var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js');
goog.object.extend(proto, google_protobuf_empty_pb);
var google_protobuf_struct_pb = require('google-protobuf/google/protobuf/struct_pb.js');
goog.object.extend(proto, google_protobuf_struct_pb);
goog.exportSymbol('proto.google.api.expr.v1alpha1.CheckedExpr', null, global);
goog.exportSymbol('proto.google.api.expr.v1alpha1.Decl', null, global);
goog.exportSymbol('proto.google.api.expr.v1alpha1.Decl.DeclKindCase', null, global);
goog.exportSymbol('proto.google.api.expr.v1alpha1.Decl.FunctionDecl', null, global);
goog.exportSymbol('proto.google.api.expr.v1alpha1.Decl.FunctionDecl.Overload', null, global);
goog.exportSymbol('proto.google.api.expr.v1alpha1.Decl.IdentDecl', null, global);
goog.exportSymbol('proto.google.api.expr.v1alpha1.Reference', null, global);
goog.exportSymbol('proto.google.api.expr.v1alpha1.Type', null, global);
goog.exportSymbol('proto.google.api.expr.v1alpha1.Type.AbstractType', null, global);
goog.exportSymbol('proto.google.api.expr.v1alpha1.Type.FunctionType', null, global);
goog.exportSymbol('proto.google.api.expr.v1alpha1.Type.ListType', null, global);
goog.exportSymbol('proto.google.api.expr.v1alpha1.Type.MapType', null, global);
goog.exportSymbol('proto.google.api.expr.v1alpha1.Type.PrimitiveType', null, global);
goog.exportSymbol('proto.google.api.expr.v1alpha1.Type.TypeKindCase', null, global);
goog.exportSymbol('proto.google.api.expr.v1alpha1.Type.WellKnownType', null, global);
/**
 * Generated by JsPbCodeGenerator.
 * @param {Array=} opt_data Optional initial data array, typically from a
 * server response, or constructed directly in Javascript. The array is used
 * in place and becomes part of the constructed object. It is not cloned.
 * If no data is provided, the constructed object will be empty, but still
 * valid.
 * @extends {jspb.Message}
 * @constructor
 */
proto.google.api.expr.v1alpha1.CheckedExpr = function(opt_data) {
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.google.api.expr.v1alpha1.CheckedExpr, jspb.Message);
if (goog.DEBUG && !COMPILED) {
  /**
   * @public
   * @override
   */
  proto.google.api.expr.v1alpha1.CheckedExpr.displayName = 'proto.google.api.expr.v1alpha1.CheckedExpr';
}
/**
 * Generated by JsPbCodeGenerator.
 * @param {Array=} opt_data Optional initial data array, typically from a
 * server response, or constructed directly in Javascript. The array is used
 * in place and becomes part of the constructed object. It is not cloned.
 * If no data is provided, the constructed object will be empty, but still
 * valid.
 * @extends {jspb.Message}
 * @constructor
 */
proto.google.api.expr.v1alpha1.Type = function(opt_data) {
  jspb.Message.initialize(this, opt_data, 0, -1, null, proto.google.api.expr.v1alpha1.Type.oneofGroups_);
};
goog.inherits(proto.google.api.expr.v1alpha1.Type, jspb.Message);
if (goog.DEBUG && !COMPILED) {
  /**
   * @public
   * @override
   */
  proto.google.api.expr.v1alpha1.Type.displayName = 'proto.google.api.expr.v1alpha1.Type';
}
/**
 * Generated by JsPbCodeGenerator.
 * @param {Array=} opt_data Optional initial data array, typically from a
 * server response, or constructed directly in Javascript. The array is used
 * in place and becomes part of the constructed object. It is not cloned.
 * If no data is provided, the constructed object will be empty, but still
 * valid.
 * @extends {jspb.Message}
 * @constructor
 */
proto.google.api.expr.v1alpha1.Type.ListType = function(opt_data) {
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.google.api.expr.v1alpha1.Type.ListType, jspb.Message);
if (goog.DEBUG && !COMPILED) {
  /**
   * @public
   * @override
   */
  proto.google.api.expr.v1alpha1.Type.ListType.displayName = 'proto.google.api.expr.v1alpha1.Type.ListType';
}
/**
 * Generated by JsPbCodeGenerator.
 * @param {Array=} opt_data Optional initial data array, typically from a
 * server response, or constructed directly in Javascript. The array is used
 * in place and becomes part of the constructed object. It is not cloned.
 * If no data is provided, the constructed object will be empty, but still
 * valid.
 * @extends {jspb.Message}
 * @constructor
 */
proto.google.api.expr.v1alpha1.Type.MapType = function(opt_data) {
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.google.api.expr.v1alpha1.Type.MapType, jspb.Message);
if (goog.DEBUG && !COMPILED) {
  /**
   * @public
   * @override
   */
  proto.google.api.expr.v1alpha1.Type.MapType.displayName = 'proto.google.api.expr.v1alpha1.Type.MapType';
}
/**
 * Generated by JsPbCodeGenerator.
 * @param {Array=} opt_data Optional initial data array, typically from a
 * server response, or constructed directly in Javascript. The array is used
 * in place and becomes part of the constructed object. It is not cloned.
 * If no data is provided, the constructed object will be empty, but still
 * valid.
 * @extends {jspb.Message}
 * @constructor
 */
proto.google.api.expr.v1alpha1.Type.FunctionType = function(opt_data) {
  jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.expr.v1alpha1.Type.FunctionType.repeatedFields_, null);
};
goog.inherits(proto.google.api.expr.v1alpha1.Type.FunctionType, jspb.Message);
if (goog.DEBUG && !COMPILED) {
  /**
   * @public
   * @override
   */
  proto.google.api.expr.v1alpha1.Type.FunctionType.displayName = 'proto.google.api.expr.v1alpha1.Type.FunctionType';
}
/**
 * Generated by JsPbCodeGenerator.
 * @param {Array=} opt_data Optional initial data array, typically from a
 * server response, or constructed directly in Javascript. The array is used
 * in place and becomes part of the constructed object. It is not cloned.
 * If no data is provided, the constructed object will be empty, but still
 * valid.
 * @extends {jspb.Message}
 * @constructor
 */
proto.google.api.expr.v1alpha1.Type.AbstractType = function(opt_data) {
  jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.expr.v1alpha1.Type.AbstractType.repeatedFields_, null);
};
goog.inherits(proto.google.api.expr.v1alpha1.Type.AbstractType, jspb.Message);
if (goog.DEBUG && !COMPILED) {
  /**
   * @public
   * @override
   */
  proto.google.api.expr.v1alpha1.Type.AbstractType.displayName = 'proto.google.api.expr.v1alpha1.Type.AbstractType';
}
/**
 * Generated by JsPbCodeGenerator.
 * @param {Array=} opt_data Optional initial data array, typically from a
 * server response, or constructed directly in Javascript. The array is used
 * in place and becomes part of the constructed object. It is not cloned.
 * If no data is provided, the constructed object will be empty, but still
 * valid.
 * @extends {jspb.Message}
 * @constructor
 */
proto.google.api.expr.v1alpha1.Decl = function(opt_data) {
  jspb.Message.initialize(this, opt_data, 0, -1, null, proto.google.api.expr.v1alpha1.Decl.oneofGroups_);
};
goog.inherits(proto.google.api.expr.v1alpha1.Decl, jspb.Message);
if (goog.DEBUG && !COMPILED) {
  /**
   * @public
   * @override
   */
  proto.google.api.expr.v1alpha1.Decl.displayName = 'proto.google.api.expr.v1alpha1.Decl';
}
/**
 * Generated by JsPbCodeGenerator.
 * @param {Array=} opt_data Optional initial data array, typically from a
 * server response, or constructed directly in Javascript. The array is used
 * in place and becomes part of the constructed object. It is not cloned.
 * If no data is provided, the constructed object will be empty, but still
 * valid.
 * @extends {jspb.Message}
 * @constructor
 */
proto.google.api.expr.v1alpha1.Decl.IdentDecl = function(opt_data) {
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.google.api.expr.v1alpha1.Decl.IdentDecl, jspb.Message);
if (goog.DEBUG && !COMPILED) {
  /**
   * @public
   * @override
   */
  proto.google.api.expr.v1alpha1.Decl.IdentDecl.displayName = 'proto.google.api.expr.v1alpha1.Decl.IdentDecl';
}
/**
 * Generated by JsPbCodeGenerator.
 * @param {Array=} opt_data Optional initial data array, typically from a
 * server response, or constructed directly in Javascript. The array is used
 * in place and becomes part of the constructed object. It is not cloned.
 * If no data is provided, the constructed object will be empty, but still
 * valid.
 * @extends {jspb.Message}
 * @constructor
 */
proto.google.api.expr.v1alpha1.Decl.FunctionDecl = function(opt_data) {
  jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.expr.v1alpha1.Decl.FunctionDecl.repeatedFields_, null);
};
goog.inherits(proto.google.api.expr.v1alpha1.Decl.FunctionDecl, jspb.Message);
if (goog.DEBUG && !COMPILED) {
  /**
   * @public
   * @override
   */
  proto.google.api.expr.v1alpha1.Decl.FunctionDecl.displayName = 'proto.google.api.expr.v1alpha1.Decl.FunctionDecl';
}
/**
 * Generated by JsPbCodeGenerator.
 * @param {Array=} opt_data Optional initial data array, typically from a
 * server response, or constructed directly in Javascript. The array is used
 * in place and becomes part of the constructed object. It is not cloned.
 * If no data is provided, the constructed object will be empty, but still
 * valid.
 * @extends {jspb.Message}
 * @constructor
 */
proto.google.api.expr.v1alpha1.Decl.FunctionDecl.Overload = function(opt_data) {
  jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.repeatedFields_, null);
};
goog.inherits(proto.google.api.expr.v1alpha1.Decl.FunctionDecl.Overload, jspb.Message);
if (goog.DEBUG && !COMPILED) {
  /**
   * @public
   * @override
   */
  proto.google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.displayName = 'proto.google.api.expr.v1alpha1.Decl.FunctionDecl.Overload';
}
/**
 * Generated by JsPbCodeGenerator.
 * @param {Array=} opt_data Optional initial data array, typically from a
 * server response, or constructed directly in Javascript. The array is used
 * in place and becomes part of the constructed object. It is not cloned.
 * If no data is provided, the constructed object will be empty, but still
 * valid.
 * @extends {jspb.Message}
 * @constructor
 */
proto.google.api.expr.v1alpha1.Reference = function(opt_data) {
  jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.expr.v1alpha1.Reference.repeatedFields_, null);
};
goog.inherits(proto.google.api.expr.v1alpha1.Reference, jspb.Message);
if (goog.DEBUG && !COMPILED) {
  /**
   * @public
   * @override
   */
  proto.google.api.expr.v1alpha1.Reference.displayName = 'proto.google.api.expr.v1alpha1.Reference';
}



if (jspb.Message.GENERATE_TO_OBJECT) {
/**
 * Creates an object representation of this proto.
 * Field names that are reserved in JavaScript and will be renamed to pb_name.
 * Optional fields that are not set will be set to undefined.
 * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
 * For the list of reserved names please see:
 *     net/proto2/compiler/js/internal/generator.cc#kKeyword.
 * @param {boolean=} opt_includeInstance Deprecated. whether to include the
 *     JSPB instance for transitional soy proto support:
 *     http://goto/soy-param-migration
 * @return {!Object}
 */
proto.google.api.expr.v1alpha1.CheckedExpr.prototype.toObject = function(opt_includeInstance) {
  return proto.google.api.expr.v1alpha1.CheckedExpr.toObject(opt_includeInstance, this);
};


/**
 * Static version of the {@see toObject} method.
 * @param {boolean|undefined} includeInstance Deprecated. Whether to include
 *     the JSPB instance for transitional soy proto support:
 *     http://goto/soy-param-migration
 * @param {!proto.google.api.expr.v1alpha1.CheckedExpr} msg The msg instance to transform.
 * @return {!Object}
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.google.api.expr.v1alpha1.CheckedExpr.toObject = function(includeInstance, msg) {
  var f, obj = {
referenceMapMap: (f = msg.getReferenceMapMap()) ? f.toObject(includeInstance, proto.google.api.expr.v1alpha1.Reference.toObject) : [],
typeMapMap: (f = msg.getTypeMapMap()) ? f.toObject(includeInstance, proto.google.api.expr.v1alpha1.Type.toObject) : [],
sourceInfo: (f = msg.getSourceInfo()) && google_api_expr_v1alpha1_syntax_pb.SourceInfo.toObject(includeInstance, f),
exprVersion: jspb.Message.getFieldWithDefault(msg, 6, ""),
expr: (f = msg.getExpr()) && google_api_expr_v1alpha1_syntax_pb.Expr.toObject(includeInstance, f)
  };

  if (includeInstance) {
    obj.$jspbMessageInstance = msg;
  }
  return obj;
};
}


/**
 * Deserializes binary data (in protobuf wire format).
 * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
 * @return {!proto.google.api.expr.v1alpha1.CheckedExpr}
 */
proto.google.api.expr.v1alpha1.CheckedExpr.deserializeBinary = function(bytes) {
  var reader = new jspb.BinaryReader(bytes);
  var msg = new proto.google.api.expr.v1alpha1.CheckedExpr;
  return proto.google.api.expr.v1alpha1.CheckedExpr.deserializeBinaryFromReader(msg, reader);
};


/**
 * Deserializes binary data (in protobuf wire format) from the
 * given reader into the given message object.
 * @param {!proto.google.api.expr.v1alpha1.CheckedExpr} msg The message object to deserialize into.
 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
 * @return {!proto.google.api.expr.v1alpha1.CheckedExpr}
 */
proto.google.api.expr.v1alpha1.CheckedExpr.deserializeBinaryFromReader = function(msg, reader) {
  while (reader.nextField()) {
    if (reader.isEndGroup()) {
      break;
    }
    var field = reader.getFieldNumber();
    switch (field) {
    case 2:
      var value = msg.getReferenceMapMap();
      reader.readMessage(value, function(message, reader) {
        jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readInt64, jspb.BinaryReader.prototype.readMessage, proto.google.api.expr.v1alpha1.Reference.deserializeBinaryFromReader, 0, new proto.google.api.expr.v1alpha1.Reference());
         });
      break;
    case 3:
      var value = msg.getTypeMapMap();
      reader.readMessage(value, function(message, reader) {
        jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readInt64, jspb.BinaryReader.prototype.readMessage, proto.google.api.expr.v1alpha1.Type.deserializeBinaryFromReader, 0, new proto.google.api.expr.v1alpha1.Type());
         });
      break;
    case 5:
      var value = new google_api_expr_v1alpha1_syntax_pb.SourceInfo;
      reader.readMessage(value,google_api_expr_v1alpha1_syntax_pb.SourceInfo.deserializeBinaryFromReader);
      msg.setSourceInfo(value);
      break;
    case 6:
      var value = /** @type {string} */ (reader.readStringRequireUtf8());
      msg.setExprVersion(value);
      break;
    case 4:
      var value = new google_api_expr_v1alpha1_syntax_pb.Expr;
      reader.readMessage(value,google_api_expr_v1alpha1_syntax_pb.Expr.deserializeBinaryFromReader);
      msg.setExpr(value);
      break;
    default:
      reader.skipField();
      break;
    }
  }
  return msg;
};


/**
 * Serializes the message to binary data (in protobuf wire format).
 * @return {!Uint8Array}
 */
proto.google.api.expr.v1alpha1.CheckedExpr.prototype.serializeBinary = function() {
  var writer = new jspb.BinaryWriter();
  proto.google.api.expr.v1alpha1.CheckedExpr.serializeBinaryToWriter(this, writer);
  return writer.getResultBuffer();
};


/**
 * Serializes the given message to binary data (in protobuf wire
 * format), writing to the given BinaryWriter.
 * @param {!proto.google.api.expr.v1alpha1.CheckedExpr} message
 * @param {!jspb.BinaryWriter} writer
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.google.api.expr.v1alpha1.CheckedExpr.serializeBinaryToWriter = function(message, writer) {
  var f = undefined;
  f = message.getReferenceMapMap(true);
  if (f && f.getLength() > 0) {
jspb.internal.public_for_gencode.serializeMapToBinary(
    message.getReferenceMapMap(true),
    2,
    writer,
    jspb.BinaryWriter.prototype.writeInt64,
    jspb.BinaryWriter.prototype.writeMessage,
    proto.google.api.expr.v1alpha1.Reference.serializeBinaryToWriter);
  }
  f = message.getTypeMapMap(true);
  if (f && f.getLength() > 0) {
jspb.internal.public_for_gencode.serializeMapToBinary(
    message.getTypeMapMap(true),
    3,
    writer,
    jspb.BinaryWriter.prototype.writeInt64,
    jspb.BinaryWriter.prototype.writeMessage,
    proto.google.api.expr.v1alpha1.Type.serializeBinaryToWriter);
  }
  f = message.getSourceInfo();
  if (f != null) {
    writer.writeMessage(
      5,
      f,
      google_api_expr_v1alpha1_syntax_pb.SourceInfo.serializeBinaryToWriter
    );
  }
  f = message.getExprVersion();
  if (f.length > 0) {
    writer.writeString(
      6,
      f
    );
  }
  f = message.getExpr();
  if (f != null) {
    writer.writeMessage(
      4,
      f,
      google_api_expr_v1alpha1_syntax_pb.Expr.serializeBinaryToWriter
    );
  }
};


/**
 * map<int64, Reference> reference_map = 2;
 * @param {boolean=} opt_noLazyCreate Do not create the map if
 * empty, instead returning `undefined`
 * @return {!jspb.Map<number,!proto.google.api.expr.v1alpha1.Reference>}
 */
proto.google.api.expr.v1alpha1.CheckedExpr.prototype.getReferenceMapMap = function(opt_noLazyCreate) {
  return /** @type {!jspb.Map<number,!proto.google.api.expr.v1alpha1.Reference>} */ (
      jspb.Message.getMapField(this, 2, opt_noLazyCreate,
      proto.google.api.expr.v1alpha1.Reference));
};


/**
 * Clears values from the map. The map will be non-null.
 * @return {!proto.google.api.expr.v1alpha1.CheckedExpr} returns this
 */
proto.google.api.expr.v1alpha1.CheckedExpr.prototype.clearReferenceMapMap = function() {
  this.getReferenceMapMap().clear();
  return this;
};


/**
 * map<int64, Type> type_map = 3;
 * @param {boolean=} opt_noLazyCreate Do not create the map if
 * empty, instead returning `undefined`
 * @return {!jspb.Map<number,!proto.google.api.expr.v1alpha1.Type>}
 */
proto.google.api.expr.v1alpha1.CheckedExpr.prototype.getTypeMapMap = function(opt_noLazyCreate) {
  return /** @type {!jspb.Map<number,!proto.google.api.expr.v1alpha1.Type>} */ (
      jspb.Message.getMapField(this, 3, opt_noLazyCreate,
      proto.google.api.expr.v1alpha1.Type));
};


/**
 * Clears values from the map. The map will be non-null.
 * @return {!proto.google.api.expr.v1alpha1.CheckedExpr} returns this
 */
proto.google.api.expr.v1alpha1.CheckedExpr.prototype.clearTypeMapMap = function() {
  this.getTypeMapMap().clear();
  return this;
};


/**
 * optional SourceInfo source_info = 5;
 * @return {?proto.google.api.expr.v1alpha1.SourceInfo}
 */
proto.google.api.expr.v1alpha1.CheckedExpr.prototype.getSourceInfo = function() {
  return /** @type{?proto.google.api.expr.v1alpha1.SourceInfo} */ (
    jspb.Message.getWrapperField(this, google_api_expr_v1alpha1_syntax_pb.SourceInfo, 5));
};


/**
 * @param {?proto.google.api.expr.v1alpha1.SourceInfo|undefined} value
 * @return {!proto.google.api.expr.v1alpha1.CheckedExpr} returns this
*/
proto.google.api.expr.v1alpha1.CheckedExpr.prototype.setSourceInfo = function(value) {
  return jspb.Message.setWrapperField(this, 5, value);
};


/**
 * Clears the message field making it undefined.
 * @return {!proto.google.api.expr.v1alpha1.CheckedExpr} returns this
 */
proto.google.api.expr.v1alpha1.CheckedExpr.prototype.clearSourceInfo = function() {
  return this.setSourceInfo(undefined);
};


/**
 * Returns whether this field is set.
 * @return {boolean}
 */
proto.google.api.expr.v1alpha1.CheckedExpr.prototype.hasSourceInfo = function() {
  return jspb.Message.getField(this, 5) != null;
};


/**
 * optional string expr_version = 6;
 * @return {string}
 */
proto.google.api.expr.v1alpha1.CheckedExpr.prototype.getExprVersion = function() {
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
};


/**
 * @param {string} value
 * @return {!proto.google.api.expr.v1alpha1.CheckedExpr} returns this
 */
proto.google.api.expr.v1alpha1.CheckedExpr.prototype.setExprVersion = function(value) {
  return jspb.Message.setProto3StringField(this, 6, value);
};


/**
 * optional Expr expr = 4;
 * @return {?proto.google.api.expr.v1alpha1.Expr}
 */
proto.google.api.expr.v1alpha1.CheckedExpr.prototype.getExpr = function() {
  return /** @type{?proto.google.api.expr.v1alpha1.Expr} */ (
    jspb.Message.getWrapperField(this, google_api_expr_v1alpha1_syntax_pb.Expr, 4));
};


/**
 * @param {?proto.google.api.expr.v1alpha1.Expr|undefined} value
 * @return {!proto.google.api.expr.v1alpha1.CheckedExpr} returns this
*/
proto.google.api.expr.v1alpha1.CheckedExpr.prototype.setExpr = function(value) {
  return jspb.Message.setWrapperField(this, 4, value);
};


/**
 * Clears the message field making it undefined.
 * @return {!proto.google.api.expr.v1alpha1.CheckedExpr} returns this
 */
proto.google.api.expr.v1alpha1.CheckedExpr.prototype.clearExpr = function() {
  return this.setExpr(undefined);
};


/**
 * Returns whether this field is set.
 * @return {boolean}
 */
proto.google.api.expr.v1alpha1.CheckedExpr.prototype.hasExpr = function() {
  return jspb.Message.getField(this, 4) != null;
};



/**
 * Oneof group definitions for this message. Each group defines the field
 * numbers belonging to that group. When of these fields' value is set, all
 * other fields in the group are cleared. During deserialization, if multiple
 * fields are encountered for a group, only the last value seen will be kept.
 * @private {!Array<!Array<number>>}
 * @const
 */
proto.google.api.expr.v1alpha1.Type.oneofGroups_ = [[1,2,3,4,5,6,7,8,9,10,11,12,14]];

/**
 * @enum {number}
 */
proto.google.api.expr.v1alpha1.Type.TypeKindCase = {
  TYPE_KIND_NOT_SET: 0,
  DYN: 1,
  NULL: 2,
  PRIMITIVE: 3,
  WRAPPER: 4,
  WELL_KNOWN: 5,
  LIST_TYPE: 6,
  MAP_TYPE: 7,
  FUNCTION: 8,
  MESSAGE_TYPE: 9,
  TYPE_PARAM: 10,
  TYPE: 11,
  ERROR: 12,
  ABSTRACT_TYPE: 14
};

/**
 * @return {proto.google.api.expr.v1alpha1.Type.TypeKindCase}
 */
proto.google.api.expr.v1alpha1.Type.prototype.getTypeKindCase = function() {
  return /** @type {proto.google.api.expr.v1alpha1.Type.TypeKindCase} */(jspb.Message.computeOneofCase(this, proto.google.api.expr.v1alpha1.Type.oneofGroups_[0]));
};



if (jspb.Message.GENERATE_TO_OBJECT) {
/**
 * Creates an object representation of this proto.
 * Field names that are reserved in JavaScript and will be renamed to pb_name.
 * Optional fields that are not set will be set to undefined.
 * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
 * For the list of reserved names please see:
 *     net/proto2/compiler/js/internal/generator.cc#kKeyword.
 * @param {boolean=} opt_includeInstance Deprecated. whether to include the
 *     JSPB instance for transitional soy proto support:
 *     http://goto/soy-param-migration
 * @return {!Object}
 */
proto.google.api.expr.v1alpha1.Type.prototype.toObject = function(opt_includeInstance) {
  return proto.google.api.expr.v1alpha1.Type.toObject(opt_includeInstance, this);
};


/**
 * Static version of the {@see toObject} method.
 * @param {boolean|undefined} includeInstance Deprecated. Whether to include
 *     the JSPB instance for transitional soy proto support:
 *     http://goto/soy-param-migration
 * @param {!proto.google.api.expr.v1alpha1.Type} msg The msg instance to transform.
 * @return {!Object}
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.google.api.expr.v1alpha1.Type.toObject = function(includeInstance, msg) {
  var f, obj = {
dyn: (f = msg.getDyn()) && google_protobuf_empty_pb.Empty.toObject(includeInstance, f),
pb_null: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f,
primitive: (f = jspb.Message.getField(msg, 3)) == null ? undefined : f,
wrapper: (f = jspb.Message.getField(msg, 4)) == null ? undefined : f,
wellKnown: (f = jspb.Message.getField(msg, 5)) == null ? undefined : f,
listType: (f = msg.getListType()) && proto.google.api.expr.v1alpha1.Type.ListType.toObject(includeInstance, f),
mapType: (f = msg.getMapType()) && proto.google.api.expr.v1alpha1.Type.MapType.toObject(includeInstance, f),
pb_function: (f = msg.getFunction()) && proto.google.api.expr.v1alpha1.Type.FunctionType.toObject(includeInstance, f),
messageType: (f = jspb.Message.getField(msg, 9)) == null ? undefined : f,
typeParam: (f = jspb.Message.getField(msg, 10)) == null ? undefined : f,
type: (f = msg.getType()) && proto.google.api.expr.v1alpha1.Type.toObject(includeInstance, f),
error: (f = msg.getError()) && google_protobuf_empty_pb.Empty.toObject(includeInstance, f),
abstractType: (f = msg.getAbstractType()) && proto.google.api.expr.v1alpha1.Type.AbstractType.toObject(includeInstance, f)
  };

  if (includeInstance) {
    obj.$jspbMessageInstance = msg;
  }
  return obj;
};
}


/**
 * Deserializes binary data (in protobuf wire format).
 * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
 * @return {!proto.google.api.expr.v1alpha1.Type}
 */
proto.google.api.expr.v1alpha1.Type.deserializeBinary = function(bytes) {
  var reader = new jspb.BinaryReader(bytes);
  var msg = new proto.google.api.expr.v1alpha1.Type;
  return proto.google.api.expr.v1alpha1.Type.deserializeBinaryFromReader(msg, reader);
};


/**
 * Deserializes binary data (in protobuf wire format) from the
 * given reader into the given message object.
 * @param {!proto.google.api.expr.v1alpha1.Type} msg The message object to deserialize into.
 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
 * @return {!proto.google.api.expr.v1alpha1.Type}
 */
proto.google.api.expr.v1alpha1.Type.deserializeBinaryFromReader = function(msg, reader) {
  while (reader.nextField()) {
    if (reader.isEndGroup()) {
      break;
    }
    var field = reader.getFieldNumber();
    switch (field) {
    case 1:
      var value = new google_protobuf_empty_pb.Empty;
      reader.readMessage(value,google_protobuf_empty_pb.Empty.deserializeBinaryFromReader);
      msg.setDyn(value);
      break;
    case 2:
      var value = /** @type {!proto.google.protobuf.NullValue} */ (reader.readEnum());
      msg.setNull(value);
      break;
    case 3:
      var value = /** @type {!proto.google.api.expr.v1alpha1.Type.PrimitiveType} */ (reader.readEnum());
      msg.setPrimitive(value);
      break;
    case 4:
      var value = /** @type {!proto.google.api.expr.v1alpha1.Type.PrimitiveType} */ (reader.readEnum());
      msg.setWrapper(value);
      break;
    case 5:
      var value = /** @type {!proto.google.api.expr.v1alpha1.Type.WellKnownType} */ (reader.readEnum());
      msg.setWellKnown(value);
      break;
    case 6:
      var value = new proto.google.api.expr.v1alpha1.Type.ListType;
      reader.readMessage(value,proto.google.api.expr.v1alpha1.Type.ListType.deserializeBinaryFromReader);
      msg.setListType(value);
      break;
    case 7:
      var value = new proto.google.api.expr.v1alpha1.Type.MapType;
      reader.readMessage(value,proto.google.api.expr.v1alpha1.Type.MapType.deserializeBinaryFromReader);
      msg.setMapType(value);
      break;
    case 8:
      var value = new proto.google.api.expr.v1alpha1.Type.FunctionType;
      reader.readMessage(value,proto.google.api.expr.v1alpha1.Type.FunctionType.deserializeBinaryFromReader);
      msg.setFunction(value);
      break;
    case 9:
      var value = /** @type {string} */ (reader.readStringRequireUtf8());
      msg.setMessageType(value);
      break;
    case 10:
      var value = /** @type {string} */ (reader.readStringRequireUtf8());
      msg.setTypeParam(value);
      break;
    case 11:
      var value = new proto.google.api.expr.v1alpha1.Type;
      reader.readMessage(value,proto.google.api.expr.v1alpha1.Type.deserializeBinaryFromReader);
      msg.setType(value);
      break;
    case 12:
      var value = new google_protobuf_empty_pb.Empty;
      reader.readMessage(value,google_protobuf_empty_pb.Empty.deserializeBinaryFromReader);
      msg.setError(value);
      break;
    case 14:
      var value = new proto.google.api.expr.v1alpha1.Type.AbstractType;
      reader.readMessage(value,proto.google.api.expr.v1alpha1.Type.AbstractType.deserializeBinaryFromReader);
      msg.setAbstractType(value);
      break;
    default:
      reader.skipField();
      break;
    }
  }
  return msg;
};


/**
 * Serializes the message to binary data (in protobuf wire format).
 * @return {!Uint8Array}
 */
proto.google.api.expr.v1alpha1.Type.prototype.serializeBinary = function() {
  var writer = new jspb.BinaryWriter();
  proto.google.api.expr.v1alpha1.Type.serializeBinaryToWriter(this, writer);
  return writer.getResultBuffer();
};


/**
 * Serializes the given message to binary data (in protobuf wire
 * format), writing to the given BinaryWriter.
 * @param {!proto.google.api.expr.v1alpha1.Type} message
 * @param {!jspb.BinaryWriter} writer
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.google.api.expr.v1alpha1.Type.serializeBinaryToWriter = function(message, writer) {
  var f = undefined;
  f = message.getDyn();
  if (f != null) {
    writer.writeMessage(
      1,
      f,
      google_protobuf_empty_pb.Empty.serializeBinaryToWriter
    );
  }
  f = /** @type {!proto.google.protobuf.NullValue} */ (jspb.Message.getField(message, 2));
  if (f != null) {
    writer.writeEnum(
      2,
      f
    );
  }
  f = /** @type {!proto.google.api.expr.v1alpha1.Type.PrimitiveType} */ (jspb.Message.getField(message, 3));
  if (f != null) {
    writer.writeEnum(
      3,
      f
    );
  }
  f = /** @type {!proto.google.api.expr.v1alpha1.Type.PrimitiveType} */ (jspb.Message.getField(message, 4));
  if (f != null) {
    writer.writeEnum(
      4,
      f
    );
  }
  f = /** @type {!proto.google.api.expr.v1alpha1.Type.WellKnownType} */ (jspb.Message.getField(message, 5));
  if (f != null) {
    writer.writeEnum(
      5,
      f
    );
  }
  f = message.getListType();
  if (f != null) {
    writer.writeMessage(
      6,
      f,
      proto.google.api.expr.v1alpha1.Type.ListType.serializeBinaryToWriter
    );
  }
  f = message.getMapType();
  if (f != null) {
    writer.writeMessage(
      7,
      f,
      proto.google.api.expr.v1alpha1.Type.MapType.serializeBinaryToWriter
    );
  }
  f = message.getFunction();
  if (f != null) {
    writer.writeMessage(
      8,
      f,
      proto.google.api.expr.v1alpha1.Type.FunctionType.serializeBinaryToWriter
    );
  }
  f = /** @type {string} */ (jspb.Message.getField(message, 9));
  if (f != null) {
    writer.writeString(
      9,
      f
    );
  }
  f = /** @type {string} */ (jspb.Message.getField(message, 10));
  if (f != null) {
    writer.writeString(
      10,
      f
    );
  }
  f = message.getType();
  if (f != null) {
    writer.writeMessage(
      11,
      f,
      proto.google.api.expr.v1alpha1.Type.serializeBinaryToWriter
    );
  }
  f = message.getError();
  if (f != null) {
    writer.writeMessage(
      12,
      f,
      google_protobuf_empty_pb.Empty.serializeBinaryToWriter
    );
  }
  f = message.getAbstractType();
  if (f != null) {
    writer.writeMessage(
      14,
      f,
      proto.google.api.expr.v1alpha1.Type.AbstractType.serializeBinaryToWriter
    );
  }
};


/**
 * @enum {number}
 */
proto.google.api.expr.v1alpha1.Type.PrimitiveType = {
  PRIMITIVE_TYPE_UNSPECIFIED: 0,
  BOOL: 1,
  INT64: 2,
  UINT64: 3,
  DOUBLE: 4,
  STRING: 5,
  BYTES: 6
};

/**
 * @enum {number}
 */
proto.google.api.expr.v1alpha1.Type.WellKnownType = {
  WELL_KNOWN_TYPE_UNSPECIFIED: 0,
  ANY: 1,
  TIMESTAMP: 2,
  DURATION: 3
};




if (jspb.Message.GENERATE_TO_OBJECT) {
/**
 * Creates an object representation of this proto.
 * Field names that are reserved in JavaScript and will be renamed to pb_name.
 * Optional fields that are not set will be set to undefined.
 * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
 * For the list of reserved names please see:
 *     net/proto2/compiler/js/internal/generator.cc#kKeyword.
 * @param {boolean=} opt_includeInstance Deprecated. whether to include the
 *     JSPB instance for transitional soy proto support:
 *     http://goto/soy-param-migration
 * @return {!Object}
 */
proto.google.api.expr.v1alpha1.Type.ListType.prototype.toObject = function(opt_includeInstance) {
  return proto.google.api.expr.v1alpha1.Type.ListType.toObject(opt_includeInstance, this);
};


/**
 * Static version of the {@see toObject} method.
 * @param {boolean|undefined} includeInstance Deprecated. Whether to include
 *     the JSPB instance for transitional soy proto support:
 *     http://goto/soy-param-migration
 * @param {!proto.google.api.expr.v1alpha1.Type.ListType} msg The msg instance to transform.
 * @return {!Object}
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.google.api.expr.v1alpha1.Type.ListType.toObject = function(includeInstance, msg) {
  var f, obj = {
elemType: (f = msg.getElemType()) && proto.google.api.expr.v1alpha1.Type.toObject(includeInstance, f)
  };

  if (includeInstance) {
    obj.$jspbMessageInstance = msg;
  }
  return obj;
};
}


/**
 * Deserializes binary data (in protobuf wire format).
 * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
 * @return {!proto.google.api.expr.v1alpha1.Type.ListType}
 */
proto.google.api.expr.v1alpha1.Type.ListType.deserializeBinary = function(bytes) {
  var reader = new jspb.BinaryReader(bytes);
  var msg = new proto.google.api.expr.v1alpha1.Type.ListType;
  return proto.google.api.expr.v1alpha1.Type.ListType.deserializeBinaryFromReader(msg, reader);
};


/**
 * Deserializes binary data (in protobuf wire format) from the
 * given reader into the given message object.
 * @param {!proto.google.api.expr.v1alpha1.Type.ListType} msg The message object to deserialize into.
 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
 * @return {!proto.google.api.expr.v1alpha1.Type.ListType}
 */
proto.google.api.expr.v1alpha1.Type.ListType.deserializeBinaryFromReader = function(msg, reader) {
  while (reader.nextField()) {
    if (reader.isEndGroup()) {
      break;
    }
    var field = reader.getFieldNumber();
    switch (field) {
    case 1:
      var value = new proto.google.api.expr.v1alpha1.Type;
      reader.readMessage(value,proto.google.api.expr.v1alpha1.Type.deserializeBinaryFromReader);
      msg.setElemType(value);
      break;
    default:
      reader.skipField();
      break;
    }
  }
  return msg;
};


/**
 * Serializes the message to binary data (in protobuf wire format).
 * @return {!Uint8Array}
 */
proto.google.api.expr.v1alpha1.Type.ListType.prototype.serializeBinary = function() {
  var writer = new jspb.BinaryWriter();
  proto.google.api.expr.v1alpha1.Type.ListType.serializeBinaryToWriter(this, writer);
  return writer.getResultBuffer();
};


/**
 * Serializes the given message to binary data (in protobuf wire
 * format), writing to the given BinaryWriter.
 * @param {!proto.google.api.expr.v1alpha1.Type.ListType} message
 * @param {!jspb.BinaryWriter} writer
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.google.api.expr.v1alpha1.Type.ListType.serializeBinaryToWriter = function(message, writer) {
  var f = undefined;
  f = message.getElemType();
  if (f != null) {
    writer.writeMessage(
      1,
      f,
      proto.google.api.expr.v1alpha1.Type.serializeBinaryToWriter
    );
  }
};


/**
 * optional Type elem_type = 1;
 * @return {?proto.google.api.expr.v1alpha1.Type}
 */
proto.google.api.expr.v1alpha1.Type.ListType.prototype.getElemType = function() {
  return /** @type{?proto.google.api.expr.v1alpha1.Type} */ (
    jspb.Message.getWrapperField(this, proto.google.api.expr.v1alpha1.Type, 1));
};


/**
 * @param {?proto.google.api.expr.v1alpha1.Type|undefined} value
 * @return {!proto.google.api.expr.v1alpha1.Type.ListType} returns this
*/
proto.google.api.expr.v1alpha1.Type.ListType.prototype.setElemType = function(value) {
  return jspb.Message.setWrapperField(this, 1, value);
};


/**
 * Clears the message field making it undefined.
 * @return {!proto.google.api.expr.v1alpha1.Type.ListType} returns this
 */
proto.google.api.expr.v1alpha1.Type.ListType.prototype.clearElemType = function() {
  return this.setElemType(undefined);
};


/**
 * Returns whether this field is set.
 * @return {boolean}
 */
proto.google.api.expr.v1alpha1.Type.ListType.prototype.hasElemType = function() {
  return jspb.Message.getField(this, 1) != null;
};





if (jspb.Message.GENERATE_TO_OBJECT) {
/**
 * Creates an object representation of this proto.
 * Field names that are reserved in JavaScript and will be renamed to pb_name.
 * Optional fields that are not set will be set to undefined.
 * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
 * For the list of reserved names please see:
 *     net/proto2/compiler/js/internal/generator.cc#kKeyword.
 * @param {boolean=} opt_includeInstance Deprecated. whether to include the
 *     JSPB instance for transitional soy proto support:
 *     http://goto/soy-param-migration
 * @return {!Object}
 */
proto.google.api.expr.v1alpha1.Type.MapType.prototype.toObject = function(opt_includeInstance) {
  return proto.google.api.expr.v1alpha1.Type.MapType.toObject(opt_includeInstance, this);
};


/**
 * Static version of the {@see toObject} method.
 * @param {boolean|undefined} includeInstance Deprecated. Whether to include
 *     the JSPB instance for transitional soy proto support:
 *     http://goto/soy-param-migration
 * @param {!proto.google.api.expr.v1alpha1.Type.MapType} msg The msg instance to transform.
 * @return {!Object}
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.google.api.expr.v1alpha1.Type.MapType.toObject = function(includeInstance, msg) {
  var f, obj = {
keyType: (f = msg.getKeyType()) && proto.google.api.expr.v1alpha1.Type.toObject(includeInstance, f),
valueType: (f = msg.getValueType()) && proto.google.api.expr.v1alpha1.Type.toObject(includeInstance, f)
  };

  if (includeInstance) {
    obj.$jspbMessageInstance = msg;
  }
  return obj;
};
}


/**
 * Deserializes binary data (in protobuf wire format).
 * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
 * @return {!proto.google.api.expr.v1alpha1.Type.MapType}
 */
proto.google.api.expr.v1alpha1.Type.MapType.deserializeBinary = function(bytes) {
  var reader = new jspb.BinaryReader(bytes);
  var msg = new proto.google.api.expr.v1alpha1.Type.MapType;
  return proto.google.api.expr.v1alpha1.Type.MapType.deserializeBinaryFromReader(msg, reader);
};


/**
 * Deserializes binary data (in protobuf wire format) from the
 * given reader into the given message object.
 * @param {!proto.google.api.expr.v1alpha1.Type.MapType} msg The message object to deserialize into.
 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
 * @return {!proto.google.api.expr.v1alpha1.Type.MapType}
 */
proto.google.api.expr.v1alpha1.Type.MapType.deserializeBinaryFromReader = function(msg, reader) {
  while (reader.nextField()) {
    if (reader.isEndGroup()) {
      break;
    }
    var field = reader.getFieldNumber();
    switch (field) {
    case 1:
      var value = new proto.google.api.expr.v1alpha1.Type;
      reader.readMessage(value,proto.google.api.expr.v1alpha1.Type.deserializeBinaryFromReader);
      msg.setKeyType(value);
      break;
    case 2:
      var value = new proto.google.api.expr.v1alpha1.Type;
      reader.readMessage(value,proto.google.api.expr.v1alpha1.Type.deserializeBinaryFromReader);
      msg.setValueType(value);
      break;
    default:
      reader.skipField();
      break;
    }
  }
  return msg;
};


/**
 * Serializes the message to binary data (in protobuf wire format).
 * @return {!Uint8Array}
 */
proto.google.api.expr.v1alpha1.Type.MapType.prototype.serializeBinary = function() {
  var writer = new jspb.BinaryWriter();
  proto.google.api.expr.v1alpha1.Type.MapType.serializeBinaryToWriter(this, writer);
  return writer.getResultBuffer();
};


/**
 * Serializes the given message to binary data (in protobuf wire
 * format), writing to the given BinaryWriter.
 * @param {!proto.google.api.expr.v1alpha1.Type.MapType} message
 * @param {!jspb.BinaryWriter} writer
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.google.api.expr.v1alpha1.Type.MapType.serializeBinaryToWriter = function(message, writer) {
  var f = undefined;
  f = message.getKeyType();
  if (f != null) {
    writer.writeMessage(
      1,
      f,
      proto.google.api.expr.v1alpha1.Type.serializeBinaryToWriter
    );
  }
  f = message.getValueType();
  if (f != null) {
    writer.writeMessage(
      2,
      f,
      proto.google.api.expr.v1alpha1.Type.serializeBinaryToWriter
    );
  }
};


/**
 * optional Type key_type = 1;
 * @return {?proto.google.api.expr.v1alpha1.Type}
 */
proto.google.api.expr.v1alpha1.Type.MapType.prototype.getKeyType = function() {
  return /** @type{?proto.google.api.expr.v1alpha1.Type} */ (
    jspb.Message.getWrapperField(this, proto.google.api.expr.v1alpha1.Type, 1));
};


/**
 * @param {?proto.google.api.expr.v1alpha1.Type|undefined} value
 * @return {!proto.google.api.expr.v1alpha1.Type.MapType} returns this
*/
proto.google.api.expr.v1alpha1.Type.MapType.prototype.setKeyType = function(value) {
  return jspb.Message.setWrapperField(this, 1, value);
};


/**
 * Clears the message field making it undefined.
 * @return {!proto.google.api.expr.v1alpha1.Type.MapType} returns this
 */
proto.google.api.expr.v1alpha1.Type.MapType.prototype.clearKeyType = function() {
  return this.setKeyType(undefined);
};


/**
 * Returns whether this field is set.
 * @return {boolean}
 */
proto.google.api.expr.v1alpha1.Type.MapType.prototype.hasKeyType = function() {
  return jspb.Message.getField(this, 1) != null;
};


/**
 * optional Type value_type = 2;
 * @return {?proto.google.api.expr.v1alpha1.Type}
 */
proto.google.api.expr.v1alpha1.Type.MapType.prototype.getValueType = function() {
  return /** @type{?proto.google.api.expr.v1alpha1.Type} */ (
    jspb.Message.getWrapperField(this, proto.google.api.expr.v1alpha1.Type, 2));
};


/**
 * @param {?proto.google.api.expr.v1alpha1.Type|undefined} value
 * @return {!proto.google.api.expr.v1alpha1.Type.MapType} returns this
*/
proto.google.api.expr.v1alpha1.Type.MapType.prototype.setValueType = function(value) {
  return jspb.Message.setWrapperField(this, 2, value);
};


/**
 * Clears the message field making it undefined.
 * @return {!proto.google.api.expr.v1alpha1.Type.MapType} returns this
 */
proto.google.api.expr.v1alpha1.Type.MapType.prototype.clearValueType = function() {
  return this.setValueType(undefined);
};


/**
 * Returns whether this field is set.
 * @return {boolean}
 */
proto.google.api.expr.v1alpha1.Type.MapType.prototype.hasValueType = function() {
  return jspb.Message.getField(this, 2) != null;
};



/**
 * List of repeated fields within this message type.
 * @private {!Array<number>}
 * @const
 */
proto.google.api.expr.v1alpha1.Type.FunctionType.repeatedFields_ = [2];



if (jspb.Message.GENERATE_TO_OBJECT) {
/**
 * Creates an object representation of this proto.
 * Field names that are reserved in JavaScript and will be renamed to pb_name.
 * Optional fields that are not set will be set to undefined.
 * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
 * For the list of reserved names please see:
 *     net/proto2/compiler/js/internal/generator.cc#kKeyword.
 * @param {boolean=} opt_includeInstance Deprecated. whether to include the
 *     JSPB instance for transitional soy proto support:
 *     http://goto/soy-param-migration
 * @return {!Object}
 */
proto.google.api.expr.v1alpha1.Type.FunctionType.prototype.toObject = function(opt_includeInstance) {
  return proto.google.api.expr.v1alpha1.Type.FunctionType.toObject(opt_includeInstance, this);
};


/**
 * Static version of the {@see toObject} method.
 * @param {boolean|undefined} includeInstance Deprecated. Whether to include
 *     the JSPB instance for transitional soy proto support:
 *     http://goto/soy-param-migration
 * @param {!proto.google.api.expr.v1alpha1.Type.FunctionType} msg The msg instance to transform.
 * @return {!Object}
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.google.api.expr.v1alpha1.Type.FunctionType.toObject = function(includeInstance, msg) {
  var f, obj = {
resultType: (f = msg.getResultType()) && proto.google.api.expr.v1alpha1.Type.toObject(includeInstance, f),
argTypesList: jspb.Message.toObjectList(msg.getArgTypesList(),
    proto.google.api.expr.v1alpha1.Type.toObject, includeInstance)
  };

  if (includeInstance) {
    obj.$jspbMessageInstance = msg;
  }
  return obj;
};
}


/**
 * Deserializes binary data (in protobuf wire format).
 * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
 * @return {!proto.google.api.expr.v1alpha1.Type.FunctionType}
 */
proto.google.api.expr.v1alpha1.Type.FunctionType.deserializeBinary = function(bytes) {
  var reader = new jspb.BinaryReader(bytes);
  var msg = new proto.google.api.expr.v1alpha1.Type.FunctionType;
  return proto.google.api.expr.v1alpha1.Type.FunctionType.deserializeBinaryFromReader(msg, reader);
};


/**
 * Deserializes binary data (in protobuf wire format) from the
 * given reader into the given message object.
 * @param {!proto.google.api.expr.v1alpha1.Type.FunctionType} msg The message object to deserialize into.
 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
 * @return {!proto.google.api.expr.v1alpha1.Type.FunctionType}
 */
proto.google.api.expr.v1alpha1.Type.FunctionType.deserializeBinaryFromReader = function(msg, reader) {
  while (reader.nextField()) {
    if (reader.isEndGroup()) {
      break;
    }
    var field = reader.getFieldNumber();
    switch (field) {
    case 1:
      var value = new proto.google.api.expr.v1alpha1.Type;
      reader.readMessage(value,proto.google.api.expr.v1alpha1.Type.deserializeBinaryFromReader);
      msg.setResultType(value);
      break;
    case 2:
      var value = new proto.google.api.expr.v1alpha1.Type;
      reader.readMessage(value,proto.google.api.expr.v1alpha1.Type.deserializeBinaryFromReader);
      msg.addArgTypes(value);
      break;
    default:
      reader.skipField();
      break;
    }
  }
  return msg;
};


/**
 * Serializes the message to binary data (in protobuf wire format).
 * @return {!Uint8Array}
 */
proto.google.api.expr.v1alpha1.Type.FunctionType.prototype.serializeBinary = function() {
  var writer = new jspb.BinaryWriter();
  proto.google.api.expr.v1alpha1.Type.FunctionType.serializeBinaryToWriter(this, writer);
  return writer.getResultBuffer();
};


/**
 * Serializes the given message to binary data (in protobuf wire
 * format), writing to the given BinaryWriter.
 * @param {!proto.google.api.expr.v1alpha1.Type.FunctionType} message
 * @param {!jspb.BinaryWriter} writer
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.google.api.expr.v1alpha1.Type.FunctionType.serializeBinaryToWriter = function(message, writer) {
  var f = undefined;
  f = message.getResultType();
  if (f != null) {
    writer.writeMessage(
      1,
      f,
      proto.google.api.expr.v1alpha1.Type.serializeBinaryToWriter
    );
  }
  f = message.getArgTypesList();
  if (f.length > 0) {
    writer.writeRepeatedMessage(
      2,
      f,
      proto.google.api.expr.v1alpha1.Type.serializeBinaryToWriter
    );
  }
};


/**
 * optional Type result_type = 1;
 * @return {?proto.google.api.expr.v1alpha1.Type}
 */
proto.google.api.expr.v1alpha1.Type.FunctionType.prototype.getResultType = function() {
  return /** @type{?proto.google.api.expr.v1alpha1.Type} */ (
    jspb.Message.getWrapperField(this, proto.google.api.expr.v1alpha1.Type, 1));
};


/**
 * @param {?proto.google.api.expr.v1alpha1.Type|undefined} value
 * @return {!proto.google.api.expr.v1alpha1.Type.FunctionType} returns this
*/
proto.google.api.expr.v1alpha1.Type.FunctionType.prototype.setResultType = function(value) {
  return jspb.Message.setWrapperField(this, 1, value);
};


/**
 * Clears the message field making it undefined.
 * @return {!proto.google.api.expr.v1alpha1.Type.FunctionType} returns this
 */
proto.google.api.expr.v1alpha1.Type.FunctionType.prototype.clearResultType = function() {
  return this.setResultType(undefined);
};


/**
 * Returns whether this field is set.
 * @return {boolean}
 */
proto.google.api.expr.v1alpha1.Type.FunctionType.prototype.hasResultType = function() {
  return jspb.Message.getField(this, 1) != null;
};


/**
 * repeated Type arg_types = 2;
 * @return {!Array<!proto.google.api.expr.v1alpha1.Type>}
 */
proto.google.api.expr.v1alpha1.Type.FunctionType.prototype.getArgTypesList = function() {
  return /** @type{!Array<!proto.google.api.expr.v1alpha1.Type>} */ (
    jspb.Message.getRepeatedWrapperField(this, proto.google.api.expr.v1alpha1.Type, 2));
};


/**
 * @param {!Array<!proto.google.api.expr.v1alpha1.Type>} value
 * @return {!proto.google.api.expr.v1alpha1.Type.FunctionType} returns this
*/
proto.google.api.expr.v1alpha1.Type.FunctionType.prototype.setArgTypesList = function(value) {
  return jspb.Message.setRepeatedWrapperField(this, 2, value);
};


/**
 * @param {!proto.google.api.expr.v1alpha1.Type=} opt_value
 * @param {number=} opt_index
 * @return {!proto.google.api.expr.v1alpha1.Type}
 */
proto.google.api.expr.v1alpha1.Type.FunctionType.prototype.addArgTypes = function(opt_value, opt_index) {
  return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.google.api.expr.v1alpha1.Type, opt_index);
};


/**
 * Clears the list making it empty but non-null.
 * @return {!proto.google.api.expr.v1alpha1.Type.FunctionType} returns this
 */
proto.google.api.expr.v1alpha1.Type.FunctionType.prototype.clearArgTypesList = function() {
  return this.setArgTypesList([]);
};



/**
 * List of repeated fields within this message type.
 * @private {!Array<number>}
 * @const
 */
proto.google.api.expr.v1alpha1.Type.AbstractType.repeatedFields_ = [2];



if (jspb.Message.GENERATE_TO_OBJECT) {
/**
 * Creates an object representation of this proto.
 * Field names that are reserved in JavaScript and will be renamed to pb_name.
 * Optional fields that are not set will be set to undefined.
 * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
 * For the list of reserved names please see:
 *     net/proto2/compiler/js/internal/generator.cc#kKeyword.
 * @param {boolean=} opt_includeInstance Deprecated. whether to include the
 *     JSPB instance for transitional soy proto support:
 *     http://goto/soy-param-migration
 * @return {!Object}
 */
proto.google.api.expr.v1alpha1.Type.AbstractType.prototype.toObject = function(opt_includeInstance) {
  return proto.google.api.expr.v1alpha1.Type.AbstractType.toObject(opt_includeInstance, this);
};


/**
 * Static version of the {@see toObject} method.
 * @param {boolean|undefined} includeInstance Deprecated. Whether to include
 *     the JSPB instance for transitional soy proto support:
 *     http://goto/soy-param-migration
 * @param {!proto.google.api.expr.v1alpha1.Type.AbstractType} msg The msg instance to transform.
 * @return {!Object}
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.google.api.expr.v1alpha1.Type.AbstractType.toObject = function(includeInstance, msg) {
  var f, obj = {
name: jspb.Message.getFieldWithDefault(msg, 1, ""),
parameterTypesList: jspb.Message.toObjectList(msg.getParameterTypesList(),
    proto.google.api.expr.v1alpha1.Type.toObject, includeInstance)
  };

  if (includeInstance) {
    obj.$jspbMessageInstance = msg;
  }
  return obj;
};
}


/**
 * Deserializes binary data (in protobuf wire format).
 * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
 * @return {!proto.google.api.expr.v1alpha1.Type.AbstractType}
 */
proto.google.api.expr.v1alpha1.Type.AbstractType.deserializeBinary = function(bytes) {
  var reader = new jspb.BinaryReader(bytes);
  var msg = new proto.google.api.expr.v1alpha1.Type.AbstractType;
  return proto.google.api.expr.v1alpha1.Type.AbstractType.deserializeBinaryFromReader(msg, reader);
};


/**
 * Deserializes binary data (in protobuf wire format) from the
 * given reader into the given message object.
 * @param {!proto.google.api.expr.v1alpha1.Type.AbstractType} msg The message object to deserialize into.
 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
 * @return {!proto.google.api.expr.v1alpha1.Type.AbstractType}
 */
proto.google.api.expr.v1alpha1.Type.AbstractType.deserializeBinaryFromReader = function(msg, reader) {
  while (reader.nextField()) {
    if (reader.isEndGroup()) {
      break;
    }
    var field = reader.getFieldNumber();
    switch (field) {
    case 1:
      var value = /** @type {string} */ (reader.readStringRequireUtf8());
      msg.setName(value);
      break;
    case 2:
      var value = new proto.google.api.expr.v1alpha1.Type;
      reader.readMessage(value,proto.google.api.expr.v1alpha1.Type.deserializeBinaryFromReader);
      msg.addParameterTypes(value);
      break;
    default:
      reader.skipField();
      break;
    }
  }
  return msg;
};


/**
 * Serializes the message to binary data (in protobuf wire format).
 * @return {!Uint8Array}
 */
proto.google.api.expr.v1alpha1.Type.AbstractType.prototype.serializeBinary = function() {
  var writer = new jspb.BinaryWriter();
  proto.google.api.expr.v1alpha1.Type.AbstractType.serializeBinaryToWriter(this, writer);
  return writer.getResultBuffer();
};


/**
 * Serializes the given message to binary data (in protobuf wire
 * format), writing to the given BinaryWriter.
 * @param {!proto.google.api.expr.v1alpha1.Type.AbstractType} message
 * @param {!jspb.BinaryWriter} writer
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.google.api.expr.v1alpha1.Type.AbstractType.serializeBinaryToWriter = function(message, writer) {
  var f = undefined;
  f = message.getName();
  if (f.length > 0) {
    writer.writeString(
      1,
      f
    );
  }
  f = message.getParameterTypesList();
  if (f.length > 0) {
    writer.writeRepeatedMessage(
      2,
      f,
      proto.google.api.expr.v1alpha1.Type.serializeBinaryToWriter
    );
  }
};


/**
 * optional string name = 1;
 * @return {string}
 */
proto.google.api.expr.v1alpha1.Type.AbstractType.prototype.getName = function() {
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};


/**
 * @param {string} value
 * @return {!proto.google.api.expr.v1alpha1.Type.AbstractType} returns this
 */
proto.google.api.expr.v1alpha1.Type.AbstractType.prototype.setName = function(value) {
  return jspb.Message.setProto3StringField(this, 1, value);
};


/**
 * repeated Type parameter_types = 2;
 * @return {!Array<!proto.google.api.expr.v1alpha1.Type>}
 */
proto.google.api.expr.v1alpha1.Type.AbstractType.prototype.getParameterTypesList = function() {
  return /** @type{!Array<!proto.google.api.expr.v1alpha1.Type>} */ (
    jspb.Message.getRepeatedWrapperField(this, proto.google.api.expr.v1alpha1.Type, 2));
};


/**
 * @param {!Array<!proto.google.api.expr.v1alpha1.Type>} value
 * @return {!proto.google.api.expr.v1alpha1.Type.AbstractType} returns this
*/
proto.google.api.expr.v1alpha1.Type.AbstractType.prototype.setParameterTypesList = function(value) {
  return jspb.Message.setRepeatedWrapperField(this, 2, value);
};


/**
 * @param {!proto.google.api.expr.v1alpha1.Type=} opt_value
 * @param {number=} opt_index
 * @return {!proto.google.api.expr.v1alpha1.Type}
 */
proto.google.api.expr.v1alpha1.Type.AbstractType.prototype.addParameterTypes = function(opt_value, opt_index) {
  return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.google.api.expr.v1alpha1.Type, opt_index);
};


/**
 * Clears the list making it empty but non-null.
 * @return {!proto.google.api.expr.v1alpha1.Type.AbstractType} returns this
 */
proto.google.api.expr.v1alpha1.Type.AbstractType.prototype.clearParameterTypesList = function() {
  return this.setParameterTypesList([]);
};


/**
 * optional google.protobuf.Empty dyn = 1;
 * @return {?proto.google.protobuf.Empty}
 */
proto.google.api.expr.v1alpha1.Type.prototype.getDyn = function() {
  return /** @type{?proto.google.protobuf.Empty} */ (
    jspb.Message.getWrapperField(this, google_protobuf_empty_pb.Empty, 1));
};


/**
 * @param {?proto.google.protobuf.Empty|undefined} value
 * @return {!proto.google.api.expr.v1alpha1.Type} returns this
*/
proto.google.api.expr.v1alpha1.Type.prototype.setDyn = function(value) {
  return jspb.Message.setOneofWrapperField(this, 1, proto.google.api.expr.v1alpha1.Type.oneofGroups_[0], value);
};


/**
 * Clears the message field making it undefined.
 * @return {!proto.google.api.expr.v1alpha1.Type} returns this
 */
proto.google.api.expr.v1alpha1.Type.prototype.clearDyn = function() {
  return this.setDyn(undefined);
};


/**
 * Returns whether this field is set.
 * @return {boolean}
 */
proto.google.api.expr.v1alpha1.Type.prototype.hasDyn = function() {
  return jspb.Message.getField(this, 1) != null;
};


/**
 * optional google.protobuf.NullValue null = 2;
 * @return {!proto.google.protobuf.NullValue}
 */
proto.google.api.expr.v1alpha1.Type.prototype.getNull = function() {
  return /** @type {!proto.google.protobuf.NullValue} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
};


/**
 * @param {!proto.google.protobuf.NullValue} value
 * @return {!proto.google.api.expr.v1alpha1.Type} returns this
 */
proto.google.api.expr.v1alpha1.Type.prototype.setNull = function(value) {
  return jspb.Message.setOneofField(this, 2, proto.google.api.expr.v1alpha1.Type.oneofGroups_[0], value);
};


/**
 * Clears the field making it undefined.
 * @return {!proto.google.api.expr.v1alpha1.Type} returns this
 */
proto.google.api.expr.v1alpha1.Type.prototype.clearNull = function() {
  return jspb.Message.setOneofField(this, 2, proto.google.api.expr.v1alpha1.Type.oneofGroups_[0], undefined);
};


/**
 * Returns whether this field is set.
 * @return {boolean}
 */
proto.google.api.expr.v1alpha1.Type.prototype.hasNull = function() {
  return jspb.Message.getField(this, 2) != null;
};


/**
 * optional PrimitiveType primitive = 3;
 * @return {!proto.google.api.expr.v1alpha1.Type.PrimitiveType}
 */
proto.google.api.expr.v1alpha1.Type.prototype.getPrimitive = function() {
  return /** @type {!proto.google.api.expr.v1alpha1.Type.PrimitiveType} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
};


/**
 * @param {!proto.google.api.expr.v1alpha1.Type.PrimitiveType} value
 * @return {!proto.google.api.expr.v1alpha1.Type} returns this
 */
proto.google.api.expr.v1alpha1.Type.prototype.setPrimitive = function(value) {
  return jspb.Message.setOneofField(this, 3, proto.google.api.expr.v1alpha1.Type.oneofGroups_[0], value);
};


/**
 * Clears the field making it undefined.
 * @return {!proto.google.api.expr.v1alpha1.Type} returns this
 */
proto.google.api.expr.v1alpha1.Type.prototype.clearPrimitive = function() {
  return jspb.Message.setOneofField(this, 3, proto.google.api.expr.v1alpha1.Type.oneofGroups_[0], undefined);
};


/**
 * Returns whether this field is set.
 * @return {boolean}
 */
proto.google.api.expr.v1alpha1.Type.prototype.hasPrimitive = function() {
  return jspb.Message.getField(this, 3) != null;
};


/**
 * optional PrimitiveType wrapper = 4;
 * @return {!proto.google.api.expr.v1alpha1.Type.PrimitiveType}
 */
proto.google.api.expr.v1alpha1.Type.prototype.getWrapper = function() {
  return /** @type {!proto.google.api.expr.v1alpha1.Type.PrimitiveType} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
};


/**
 * @param {!proto.google.api.expr.v1alpha1.Type.PrimitiveType} value
 * @return {!proto.google.api.expr.v1alpha1.Type} returns this
 */
proto.google.api.expr.v1alpha1.Type.prototype.setWrapper = function(value) {
  return jspb.Message.setOneofField(this, 4, proto.google.api.expr.v1alpha1.Type.oneofGroups_[0], value);
};


/**
 * Clears the field making it undefined.
 * @return {!proto.google.api.expr.v1alpha1.Type} returns this
 */
proto.google.api.expr.v1alpha1.Type.prototype.clearWrapper = function() {
  return jspb.Message.setOneofField(this, 4, proto.google.api.expr.v1alpha1.Type.oneofGroups_[0], undefined);
};


/**
 * Returns whether this field is set.
 * @return {boolean}
 */
proto.google.api.expr.v1alpha1.Type.prototype.hasWrapper = function() {
  return jspb.Message.getField(this, 4) != null;
};


/**
 * optional WellKnownType well_known = 5;
 * @return {!proto.google.api.expr.v1alpha1.Type.WellKnownType}
 */
proto.google.api.expr.v1alpha1.Type.prototype.getWellKnown = function() {
  return /** @type {!proto.google.api.expr.v1alpha1.Type.WellKnownType} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
};


/**
 * @param {!proto.google.api.expr.v1alpha1.Type.WellKnownType} value
 * @return {!proto.google.api.expr.v1alpha1.Type} returns this
 */
proto.google.api.expr.v1alpha1.Type.prototype.setWellKnown = function(value) {
  return jspb.Message.setOneofField(this, 5, proto.google.api.expr.v1alpha1.Type.oneofGroups_[0], value);
};


/**
 * Clears the field making it undefined.
 * @return {!proto.google.api.expr.v1alpha1.Type} returns this
 */
proto.google.api.expr.v1alpha1.Type.prototype.clearWellKnown = function() {
  return jspb.Message.setOneofField(this, 5, proto.google.api.expr.v1alpha1.Type.oneofGroups_[0], undefined);
};


/**
 * Returns whether this field is set.
 * @return {boolean}
 */
proto.google.api.expr.v1alpha1.Type.prototype.hasWellKnown = function() {
  return jspb.Message.getField(this, 5) != null;
};


/**
 * optional ListType list_type = 6;
 * @return {?proto.google.api.expr.v1alpha1.Type.ListType}
 */
proto.google.api.expr.v1alpha1.Type.prototype.getListType = function() {
  return /** @type{?proto.google.api.expr.v1alpha1.Type.ListType} */ (
    jspb.Message.getWrapperField(this, proto.google.api.expr.v1alpha1.Type.ListType, 6));
};


/**
 * @param {?proto.google.api.expr.v1alpha1.Type.ListType|undefined} value
 * @return {!proto.google.api.expr.v1alpha1.Type} returns this
*/
proto.google.api.expr.v1alpha1.Type.prototype.setListType = function(value) {
  return jspb.Message.setOneofWrapperField(this, 6, proto.google.api.expr.v1alpha1.Type.oneofGroups_[0], value);
};


/**
 * Clears the message field making it undefined.
 * @return {!proto.google.api.expr.v1alpha1.Type} returns this
 */
proto.google.api.expr.v1alpha1.Type.prototype.clearListType = function() {
  return this.setListType(undefined);
};


/**
 * Returns whether this field is set.
 * @return {boolean}
 */
proto.google.api.expr.v1alpha1.Type.prototype.hasListType = function() {
  return jspb.Message.getField(this, 6) != null;
};


/**
 * optional MapType map_type = 7;
 * @return {?proto.google.api.expr.v1alpha1.Type.MapType}
 */
proto.google.api.expr.v1alpha1.Type.prototype.getMapType = function() {
  return /** @type{?proto.google.api.expr.v1alpha1.Type.MapType} */ (
    jspb.Message.getWrapperField(this, proto.google.api.expr.v1alpha1.Type.MapType, 7));
};


/**
 * @param {?proto.google.api.expr.v1alpha1.Type.MapType|undefined} value
 * @return {!proto.google.api.expr.v1alpha1.Type} returns this
*/
proto.google.api.expr.v1alpha1.Type.prototype.setMapType = function(value) {
  return jspb.Message.setOneofWrapperField(this, 7, proto.google.api.expr.v1alpha1.Type.oneofGroups_[0], value);
};


/**
 * Clears the message field making it undefined.
 * @return {!proto.google.api.expr.v1alpha1.Type} returns this
 */
proto.google.api.expr.v1alpha1.Type.prototype.clearMapType = function() {
  return this.setMapType(undefined);
};


/**
 * Returns whether this field is set.
 * @return {boolean}
 */
proto.google.api.expr.v1alpha1.Type.prototype.hasMapType = function() {
  return jspb.Message.getField(this, 7) != null;
};


/**
 * optional FunctionType function = 8;
 * @return {?proto.google.api.expr.v1alpha1.Type.FunctionType}
 */
proto.google.api.expr.v1alpha1.Type.prototype.getFunction = function() {
  return /** @type{?proto.google.api.expr.v1alpha1.Type.FunctionType} */ (
    jspb.Message.getWrapperField(this, proto.google.api.expr.v1alpha1.Type.FunctionType, 8));
};


/**
 * @param {?proto.google.api.expr.v1alpha1.Type.FunctionType|undefined} value
 * @return {!proto.google.api.expr.v1alpha1.Type} returns this
*/
proto.google.api.expr.v1alpha1.Type.prototype.setFunction = function(value) {
  return jspb.Message.setOneofWrapperField(this, 8, proto.google.api.expr.v1alpha1.Type.oneofGroups_[0], value);
};


/**
 * Clears the message field making it undefined.
 * @return {!proto.google.api.expr.v1alpha1.Type} returns this
 */
proto.google.api.expr.v1alpha1.Type.prototype.clearFunction = function() {
  return this.setFunction(undefined);
};


/**
 * Returns whether this field is set.
 * @return {boolean}
 */
proto.google.api.expr.v1alpha1.Type.prototype.hasFunction = function() {
  return jspb.Message.getField(this, 8) != null;
};


/**
 * optional string message_type = 9;
 * @return {string}
 */
proto.google.api.expr.v1alpha1.Type.prototype.getMessageType = function() {
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
};


/**
 * @param {string} value
 * @return {!proto.google.api.expr.v1alpha1.Type} returns this
 */
proto.google.api.expr.v1alpha1.Type.prototype.setMessageType = function(value) {
  return jspb.Message.setOneofField(this, 9, proto.google.api.expr.v1alpha1.Type.oneofGroups_[0], value);
};


/**
 * Clears the field making it undefined.
 * @return {!proto.google.api.expr.v1alpha1.Type} returns this
 */
proto.google.api.expr.v1alpha1.Type.prototype.clearMessageType = function() {
  return jspb.Message.setOneofField(this, 9, proto.google.api.expr.v1alpha1.Type.oneofGroups_[0], undefined);
};


/**
 * Returns whether this field is set.
 * @return {boolean}
 */
proto.google.api.expr.v1alpha1.Type.prototype.hasMessageType = function() {
  return jspb.Message.getField(this, 9) != null;
};


/**
 * optional string type_param = 10;
 * @return {string}
 */
proto.google.api.expr.v1alpha1.Type.prototype.getTypeParam = function() {
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
};


/**
 * @param {string} value
 * @return {!proto.google.api.expr.v1alpha1.Type} returns this
 */
proto.google.api.expr.v1alpha1.Type.prototype.setTypeParam = function(value) {
  return jspb.Message.setOneofField(this, 10, proto.google.api.expr.v1alpha1.Type.oneofGroups_[0], value);
};


/**
 * Clears the field making it undefined.
 * @return {!proto.google.api.expr.v1alpha1.Type} returns this
 */
proto.google.api.expr.v1alpha1.Type.prototype.clearTypeParam = function() {
  return jspb.Message.setOneofField(this, 10, proto.google.api.expr.v1alpha1.Type.oneofGroups_[0], undefined);
};


/**
 * Returns whether this field is set.
 * @return {boolean}
 */
proto.google.api.expr.v1alpha1.Type.prototype.hasTypeParam = function() {
  return jspb.Message.getField(this, 10) != null;
};


/**
 * optional Type type = 11;
 * @return {?proto.google.api.expr.v1alpha1.Type}
 */
proto.google.api.expr.v1alpha1.Type.prototype.getType = function() {
  return /** @type{?proto.google.api.expr.v1alpha1.Type} */ (
    jspb.Message.getWrapperField(this, proto.google.api.expr.v1alpha1.Type, 11));
};


/**
 * @param {?proto.google.api.expr.v1alpha1.Type|undefined} value
 * @return {!proto.google.api.expr.v1alpha1.Type} returns this
*/
proto.google.api.expr.v1alpha1.Type.prototype.setType = function(value) {
  return jspb.Message.setOneofWrapperField(this, 11, proto.google.api.expr.v1alpha1.Type.oneofGroups_[0], value);
};


/**
 * Clears the message field making it undefined.
 * @return {!proto.google.api.expr.v1alpha1.Type} returns this
 */
proto.google.api.expr.v1alpha1.Type.prototype.clearType = function() {
  return this.setType(undefined);
};


/**
 * Returns whether this field is set.
 * @return {boolean}
 */
proto.google.api.expr.v1alpha1.Type.prototype.hasType = function() {
  return jspb.Message.getField(this, 11) != null;
};


/**
 * optional google.protobuf.Empty error = 12;
 * @return {?proto.google.protobuf.Empty}
 */
proto.google.api.expr.v1alpha1.Type.prototype.getError = function() {
  return /** @type{?proto.google.protobuf.Empty} */ (
    jspb.Message.getWrapperField(this, google_protobuf_empty_pb.Empty, 12));
};


/**
 * @param {?proto.google.protobuf.Empty|undefined} value
 * @return {!proto.google.api.expr.v1alpha1.Type} returns this
*/
proto.google.api.expr.v1alpha1.Type.prototype.setError = function(value) {
  return jspb.Message.setOneofWrapperField(this, 12, proto.google.api.expr.v1alpha1.Type.oneofGroups_[0], value);
};


/**
 * Clears the message field making it undefined.
 * @return {!proto.google.api.expr.v1alpha1.Type} returns this
 */
proto.google.api.expr.v1alpha1.Type.prototype.clearError = function() {
  return this.setError(undefined);
};


/**
 * Returns whether this field is set.
 * @return {boolean}
 */
proto.google.api.expr.v1alpha1.Type.prototype.hasError = function() {
  return jspb.Message.getField(this, 12) != null;
};


/**
 * optional AbstractType abstract_type = 14;
 * @return {?proto.google.api.expr.v1alpha1.Type.AbstractType}
 */
proto.google.api.expr.v1alpha1.Type.prototype.getAbstractType = function() {
  return /** @type{?proto.google.api.expr.v1alpha1.Type.AbstractType} */ (
    jspb.Message.getWrapperField(this, proto.google.api.expr.v1alpha1.Type.AbstractType, 14));
};


/**
 * @param {?proto.google.api.expr.v1alpha1.Type.AbstractType|undefined} value
 * @return {!proto.google.api.expr.v1alpha1.Type} returns this
*/
proto.google.api.expr.v1alpha1.Type.prototype.setAbstractType = function(value) {
  return jspb.Message.setOneofWrapperField(this, 14, proto.google.api.expr.v1alpha1.Type.oneofGroups_[0], value);
};


/**
 * Clears the message field making it undefined.
 * @return {!proto.google.api.expr.v1alpha1.Type} returns this
 */
proto.google.api.expr.v1alpha1.Type.prototype.clearAbstractType = function() {
  return this.setAbstractType(undefined);
};


/**
 * Returns whether this field is set.
 * @return {boolean}
 */
proto.google.api.expr.v1alpha1.Type.prototype.hasAbstractType = function() {
  return jspb.Message.getField(this, 14) != null;
};



/**
 * Oneof group definitions for this message. Each group defines the field
 * numbers belonging to that group. When of these fields' value is set, all
 * other fields in the group are cleared. During deserialization, if multiple
 * fields are encountered for a group, only the last value seen will be kept.
 * @private {!Array<!Array<number>>}
 * @const
 */
proto.google.api.expr.v1alpha1.Decl.oneofGroups_ = [[2,3]];

/**
 * @enum {number}
 */
proto.google.api.expr.v1alpha1.Decl.DeclKindCase = {
  DECL_KIND_NOT_SET: 0,
  IDENT: 2,
  FUNCTION: 3
};

/**
 * @return {proto.google.api.expr.v1alpha1.Decl.DeclKindCase}
 */
proto.google.api.expr.v1alpha1.Decl.prototype.getDeclKindCase = function() {
  return /** @type {proto.google.api.expr.v1alpha1.Decl.DeclKindCase} */(jspb.Message.computeOneofCase(this, proto.google.api.expr.v1alpha1.Decl.oneofGroups_[0]));
};



if (jspb.Message.GENERATE_TO_OBJECT) {
/**
 * Creates an object representation of this proto.
 * Field names that are reserved in JavaScript and will be renamed to pb_name.
 * Optional fields that are not set will be set to undefined.
 * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
 * For the list of reserved names please see:
 *     net/proto2/compiler/js/internal/generator.cc#kKeyword.
 * @param {boolean=} opt_includeInstance Deprecated. whether to include the
 *     JSPB instance for transitional soy proto support:
 *     http://goto/soy-param-migration
 * @return {!Object}
 */
proto.google.api.expr.v1alpha1.Decl.prototype.toObject = function(opt_includeInstance) {
  return proto.google.api.expr.v1alpha1.Decl.toObject(opt_includeInstance, this);
};


/**
 * Static version of the {@see toObject} method.
 * @param {boolean|undefined} includeInstance Deprecated. Whether to include
 *     the JSPB instance for transitional soy proto support:
 *     http://goto/soy-param-migration
 * @param {!proto.google.api.expr.v1alpha1.Decl} msg The msg instance to transform.
 * @return {!Object}
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.google.api.expr.v1alpha1.Decl.toObject = function(includeInstance, msg) {
  var f, obj = {
name: jspb.Message.getFieldWithDefault(msg, 1, ""),
ident: (f = msg.getIdent()) && proto.google.api.expr.v1alpha1.Decl.IdentDecl.toObject(includeInstance, f),
pb_function: (f = msg.getFunction()) && proto.google.api.expr.v1alpha1.Decl.FunctionDecl.toObject(includeInstance, f)
  };

  if (includeInstance) {
    obj.$jspbMessageInstance = msg;
  }
  return obj;
};
}


/**
 * Deserializes binary data (in protobuf wire format).
 * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
 * @return {!proto.google.api.expr.v1alpha1.Decl}
 */
proto.google.api.expr.v1alpha1.Decl.deserializeBinary = function(bytes) {
  var reader = new jspb.BinaryReader(bytes);
  var msg = new proto.google.api.expr.v1alpha1.Decl;
  return proto.google.api.expr.v1alpha1.Decl.deserializeBinaryFromReader(msg, reader);
};


/**
 * Deserializes binary data (in protobuf wire format) from the
 * given reader into the given message object.
 * @param {!proto.google.api.expr.v1alpha1.Decl} msg The message object to deserialize into.
 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
 * @return {!proto.google.api.expr.v1alpha1.Decl}
 */
proto.google.api.expr.v1alpha1.Decl.deserializeBinaryFromReader = function(msg, reader) {
  while (reader.nextField()) {
    if (reader.isEndGroup()) {
      break;
    }
    var field = reader.getFieldNumber();
    switch (field) {
    case 1:
      var value = /** @type {string} */ (reader.readStringRequireUtf8());
      msg.setName(value);
      break;
    case 2:
      var value = new proto.google.api.expr.v1alpha1.Decl.IdentDecl;
      reader.readMessage(value,proto.google.api.expr.v1alpha1.Decl.IdentDecl.deserializeBinaryFromReader);
      msg.setIdent(value);
      break;
    case 3:
      var value = new proto.google.api.expr.v1alpha1.Decl.FunctionDecl;
      reader.readMessage(value,proto.google.api.expr.v1alpha1.Decl.FunctionDecl.deserializeBinaryFromReader);
      msg.setFunction(value);
      break;
    default:
      reader.skipField();
      break;
    }
  }
  return msg;
};


/**
 * Serializes the message to binary data (in protobuf wire format).
 * @return {!Uint8Array}
 */
proto.google.api.expr.v1alpha1.Decl.prototype.serializeBinary = function() {
  var writer = new jspb.BinaryWriter();
  proto.google.api.expr.v1alpha1.Decl.serializeBinaryToWriter(this, writer);
  return writer.getResultBuffer();
};


/**
 * Serializes the given message to binary data (in protobuf wire
 * format), writing to the given BinaryWriter.
 * @param {!proto.google.api.expr.v1alpha1.Decl} message
 * @param {!jspb.BinaryWriter} writer
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.google.api.expr.v1alpha1.Decl.serializeBinaryToWriter = function(message, writer) {
  var f = undefined;
  f = message.getName();
  if (f.length > 0) {
    writer.writeString(
      1,
      f
    );
  }
  f = message.getIdent();
  if (f != null) {
    writer.writeMessage(
      2,
      f,
      proto.google.api.expr.v1alpha1.Decl.IdentDecl.serializeBinaryToWriter
    );
  }
  f = message.getFunction();
  if (f != null) {
    writer.writeMessage(
      3,
      f,
      proto.google.api.expr.v1alpha1.Decl.FunctionDecl.serializeBinaryToWriter
    );
  }
};





if (jspb.Message.GENERATE_TO_OBJECT) {
/**
 * Creates an object representation of this proto.
 * Field names that are reserved in JavaScript and will be renamed to pb_name.
 * Optional fields that are not set will be set to undefined.
 * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
 * For the list of reserved names please see:
 *     net/proto2/compiler/js/internal/generator.cc#kKeyword.
 * @param {boolean=} opt_includeInstance Deprecated. whether to include the
 *     JSPB instance for transitional soy proto support:
 *     http://goto/soy-param-migration
 * @return {!Object}
 */
proto.google.api.expr.v1alpha1.Decl.IdentDecl.prototype.toObject = function(opt_includeInstance) {
  return proto.google.api.expr.v1alpha1.Decl.IdentDecl.toObject(opt_includeInstance, this);
};


/**
 * Static version of the {@see toObject} method.
 * @param {boolean|undefined} includeInstance Deprecated. Whether to include
 *     the JSPB instance for transitional soy proto support:
 *     http://goto/soy-param-migration
 * @param {!proto.google.api.expr.v1alpha1.Decl.IdentDecl} msg The msg instance to transform.
 * @return {!Object}
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.google.api.expr.v1alpha1.Decl.IdentDecl.toObject = function(includeInstance, msg) {
  var f, obj = {
type: (f = msg.getType()) && proto.google.api.expr.v1alpha1.Type.toObject(includeInstance, f),
value: (f = msg.getValue()) && google_api_expr_v1alpha1_syntax_pb.Constant.toObject(includeInstance, f),
doc: jspb.Message.getFieldWithDefault(msg, 3, "")
  };

  if (includeInstance) {
    obj.$jspbMessageInstance = msg;
  }
  return obj;
};
}


/**
 * Deserializes binary data (in protobuf wire format).
 * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
 * @return {!proto.google.api.expr.v1alpha1.Decl.IdentDecl}
 */
proto.google.api.expr.v1alpha1.Decl.IdentDecl.deserializeBinary = function(bytes) {
  var reader = new jspb.BinaryReader(bytes);
  var msg = new proto.google.api.expr.v1alpha1.Decl.IdentDecl;
  return proto.google.api.expr.v1alpha1.Decl.IdentDecl.deserializeBinaryFromReader(msg, reader);
};


/**
 * Deserializes binary data (in protobuf wire format) from the
 * given reader into the given message object.
 * @param {!proto.google.api.expr.v1alpha1.Decl.IdentDecl} msg The message object to deserialize into.
 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
 * @return {!proto.google.api.expr.v1alpha1.Decl.IdentDecl}
 */
proto.google.api.expr.v1alpha1.Decl.IdentDecl.deserializeBinaryFromReader = function(msg, reader) {
  while (reader.nextField()) {
    if (reader.isEndGroup()) {
      break;
    }
    var field = reader.getFieldNumber();
    switch (field) {
    case 1:
      var value = new proto.google.api.expr.v1alpha1.Type;
      reader.readMessage(value,proto.google.api.expr.v1alpha1.Type.deserializeBinaryFromReader);
      msg.setType(value);
      break;
    case 2:
      var value = new google_api_expr_v1alpha1_syntax_pb.Constant;
      reader.readMessage(value,google_api_expr_v1alpha1_syntax_pb.Constant.deserializeBinaryFromReader);
      msg.setValue(value);
      break;
    case 3:
      var value = /** @type {string} */ (reader.readStringRequireUtf8());
      msg.setDoc(value);
      break;
    default:
      reader.skipField();
      break;
    }
  }
  return msg;
};


/**
 * Serializes the message to binary data (in protobuf wire format).
 * @return {!Uint8Array}
 */
proto.google.api.expr.v1alpha1.Decl.IdentDecl.prototype.serializeBinary = function() {
  var writer = new jspb.BinaryWriter();
  proto.google.api.expr.v1alpha1.Decl.IdentDecl.serializeBinaryToWriter(this, writer);
  return writer.getResultBuffer();
};


/**
 * Serializes the given message to binary data (in protobuf wire
 * format), writing to the given BinaryWriter.
 * @param {!proto.google.api.expr.v1alpha1.Decl.IdentDecl} message
 * @param {!jspb.BinaryWriter} writer
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.google.api.expr.v1alpha1.Decl.IdentDecl.serializeBinaryToWriter = function(message, writer) {
  var f = undefined;
  f = message.getType();
  if (f != null) {
    writer.writeMessage(
      1,
      f,
      proto.google.api.expr.v1alpha1.Type.serializeBinaryToWriter
    );
  }
  f = message.getValue();
  if (f != null) {
    writer.writeMessage(
      2,
      f,
      google_api_expr_v1alpha1_syntax_pb.Constant.serializeBinaryToWriter
    );
  }
  f = message.getDoc();
  if (f.length > 0) {
    writer.writeString(
      3,
      f
    );
  }
};


/**
 * optional Type type = 1;
 * @return {?proto.google.api.expr.v1alpha1.Type}
 */
proto.google.api.expr.v1alpha1.Decl.IdentDecl.prototype.getType = function() {
  return /** @type{?proto.google.api.expr.v1alpha1.Type} */ (
    jspb.Message.getWrapperField(this, proto.google.api.expr.v1alpha1.Type, 1));
};


/**
 * @param {?proto.google.api.expr.v1alpha1.Type|undefined} value
 * @return {!proto.google.api.expr.v1alpha1.Decl.IdentDecl} returns this
*/
proto.google.api.expr.v1alpha1.Decl.IdentDecl.prototype.setType = function(value) {
  return jspb.Message.setWrapperField(this, 1, value);
};


/**
 * Clears the message field making it undefined.
 * @return {!proto.google.api.expr.v1alpha1.Decl.IdentDecl} returns this
 */
proto.google.api.expr.v1alpha1.Decl.IdentDecl.prototype.clearType = function() {
  return this.setType(undefined);
};


/**
 * Returns whether this field is set.
 * @return {boolean}
 */
proto.google.api.expr.v1alpha1.Decl.IdentDecl.prototype.hasType = function() {
  return jspb.Message.getField(this, 1) != null;
};


/**
 * optional Constant value = 2;
 * @return {?proto.google.api.expr.v1alpha1.Constant}
 */
proto.google.api.expr.v1alpha1.Decl.IdentDecl.prototype.getValue = function() {
  return /** @type{?proto.google.api.expr.v1alpha1.Constant} */ (
    jspb.Message.getWrapperField(this, google_api_expr_v1alpha1_syntax_pb.Constant, 2));
};


/**
 * @param {?proto.google.api.expr.v1alpha1.Constant|undefined} value
 * @return {!proto.google.api.expr.v1alpha1.Decl.IdentDecl} returns this
*/
proto.google.api.expr.v1alpha1.Decl.IdentDecl.prototype.setValue = function(value) {
  return jspb.Message.setWrapperField(this, 2, value);
};


/**
 * Clears the message field making it undefined.
 * @return {!proto.google.api.expr.v1alpha1.Decl.IdentDecl} returns this
 */
proto.google.api.expr.v1alpha1.Decl.IdentDecl.prototype.clearValue = function() {
  return this.setValue(undefined);
};


/**
 * Returns whether this field is set.
 * @return {boolean}
 */
proto.google.api.expr.v1alpha1.Decl.IdentDecl.prototype.hasValue = function() {
  return jspb.Message.getField(this, 2) != null;
};


/**
 * optional string doc = 3;
 * @return {string}
 */
proto.google.api.expr.v1alpha1.Decl.IdentDecl.prototype.getDoc = function() {
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
};


/**
 * @param {string} value
 * @return {!proto.google.api.expr.v1alpha1.Decl.IdentDecl} returns this
 */
proto.google.api.expr.v1alpha1.Decl.IdentDecl.prototype.setDoc = function(value) {
  return jspb.Message.setProto3StringField(this, 3, value);
};



/**
 * List of repeated fields within this message type.
 * @private {!Array<number>}
 * @const
 */
proto.google.api.expr.v1alpha1.Decl.FunctionDecl.repeatedFields_ = [1];



if (jspb.Message.GENERATE_TO_OBJECT) {
/**
 * Creates an object representation of this proto.
 * Field names that are reserved in JavaScript and will be renamed to pb_name.
 * Optional fields that are not set will be set to undefined.
 * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
 * For the list of reserved names please see:
 *     net/proto2/compiler/js/internal/generator.cc#kKeyword.
 * @param {boolean=} opt_includeInstance Deprecated. whether to include the
 *     JSPB instance for transitional soy proto support:
 *     http://goto/soy-param-migration
 * @return {!Object}
 */
proto.google.api.expr.v1alpha1.Decl.FunctionDecl.prototype.toObject = function(opt_includeInstance) {
  return proto.google.api.expr.v1alpha1.Decl.FunctionDecl.toObject(opt_includeInstance, this);
};


/**
 * Static version of the {@see toObject} method.
 * @param {boolean|undefined} includeInstance Deprecated. Whether to include
 *     the JSPB instance for transitional soy proto support:
 *     http://goto/soy-param-migration
 * @param {!proto.google.api.expr.v1alpha1.Decl.FunctionDecl} msg The msg instance to transform.
 * @return {!Object}
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.google.api.expr.v1alpha1.Decl.FunctionDecl.toObject = function(includeInstance, msg) {
  var f, obj = {
overloadsList: jspb.Message.toObjectList(msg.getOverloadsList(),
    proto.google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.toObject, includeInstance)
  };

  if (includeInstance) {
    obj.$jspbMessageInstance = msg;
  }
  return obj;
};
}


/**
 * Deserializes binary data (in protobuf wire format).
 * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
 * @return {!proto.google.api.expr.v1alpha1.Decl.FunctionDecl}
 */
proto.google.api.expr.v1alpha1.Decl.FunctionDecl.deserializeBinary = function(bytes) {
  var reader = new jspb.BinaryReader(bytes);
  var msg = new proto.google.api.expr.v1alpha1.Decl.FunctionDecl;
  return proto.google.api.expr.v1alpha1.Decl.FunctionDecl.deserializeBinaryFromReader(msg, reader);
};


/**
 * Deserializes binary data (in protobuf wire format) from the
 * given reader into the given message object.
 * @param {!proto.google.api.expr.v1alpha1.Decl.FunctionDecl} msg The message object to deserialize into.
 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
 * @return {!proto.google.api.expr.v1alpha1.Decl.FunctionDecl}
 */
proto.google.api.expr.v1alpha1.Decl.FunctionDecl.deserializeBinaryFromReader = function(msg, reader) {
  while (reader.nextField()) {
    if (reader.isEndGroup()) {
      break;
    }
    var field = reader.getFieldNumber();
    switch (field) {
    case 1:
      var value = new proto.google.api.expr.v1alpha1.Decl.FunctionDecl.Overload;
      reader.readMessage(value,proto.google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.deserializeBinaryFromReader);
      msg.addOverloads(value);
      break;
    default:
      reader.skipField();
      break;
    }
  }
  return msg;
};


/**
 * Serializes the message to binary data (in protobuf wire format).
 * @return {!Uint8Array}
 */
proto.google.api.expr.v1alpha1.Decl.FunctionDecl.prototype.serializeBinary = function() {
  var writer = new jspb.BinaryWriter();
  proto.google.api.expr.v1alpha1.Decl.FunctionDecl.serializeBinaryToWriter(this, writer);
  return writer.getResultBuffer();
};


/**
 * Serializes the given message to binary data (in protobuf wire
 * format), writing to the given BinaryWriter.
 * @param {!proto.google.api.expr.v1alpha1.Decl.FunctionDecl} message
 * @param {!jspb.BinaryWriter} writer
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.google.api.expr.v1alpha1.Decl.FunctionDecl.serializeBinaryToWriter = function(message, writer) {
  var f = undefined;
  f = message.getOverloadsList();
  if (f.length > 0) {
    writer.writeRepeatedMessage(
      1,
      f,
      proto.google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.serializeBinaryToWriter
    );
  }
};



/**
 * List of repeated fields within this message type.
 * @private {!Array<number>}
 * @const
 */
proto.google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.repeatedFields_ = [2,3];



if (jspb.Message.GENERATE_TO_OBJECT) {
/**
 * Creates an object representation of this proto.
 * Field names that are reserved in JavaScript and will be renamed to pb_name.
 * Optional fields that are not set will be set to undefined.
 * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
 * For the list of reserved names please see:
 *     net/proto2/compiler/js/internal/generator.cc#kKeyword.
 * @param {boolean=} opt_includeInstance Deprecated. whether to include the
 *     JSPB instance for transitional soy proto support:
 *     http://goto/soy-param-migration
 * @return {!Object}
 */
proto.google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.prototype.toObject = function(opt_includeInstance) {
  return proto.google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.toObject(opt_includeInstance, this);
};


/**
 * Static version of the {@see toObject} method.
 * @param {boolean|undefined} includeInstance Deprecated. Whether to include
 *     the JSPB instance for transitional soy proto support:
 *     http://goto/soy-param-migration
 * @param {!proto.google.api.expr.v1alpha1.Decl.FunctionDecl.Overload} msg The msg instance to transform.
 * @return {!Object}
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.toObject = function(includeInstance, msg) {
  var f, obj = {
overloadId: jspb.Message.getFieldWithDefault(msg, 1, ""),
paramsList: jspb.Message.toObjectList(msg.getParamsList(),
    proto.google.api.expr.v1alpha1.Type.toObject, includeInstance),
typeParamsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
resultType: (f = msg.getResultType()) && proto.google.api.expr.v1alpha1.Type.toObject(includeInstance, f),
isInstanceFunction: jspb.Message.getBooleanFieldWithDefault(msg, 5, false),
doc: jspb.Message.getFieldWithDefault(msg, 6, "")
  };

  if (includeInstance) {
    obj.$jspbMessageInstance = msg;
  }
  return obj;
};
}


/**
 * Deserializes binary data (in protobuf wire format).
 * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
 * @return {!proto.google.api.expr.v1alpha1.Decl.FunctionDecl.Overload}
 */
proto.google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.deserializeBinary = function(bytes) {
  var reader = new jspb.BinaryReader(bytes);
  var msg = new proto.google.api.expr.v1alpha1.Decl.FunctionDecl.Overload;
  return proto.google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.deserializeBinaryFromReader(msg, reader);
};


/**
 * Deserializes binary data (in protobuf wire format) from the
 * given reader into the given message object.
 * @param {!proto.google.api.expr.v1alpha1.Decl.FunctionDecl.Overload} msg The message object to deserialize into.
 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
 * @return {!proto.google.api.expr.v1alpha1.Decl.FunctionDecl.Overload}
 */
proto.google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.deserializeBinaryFromReader = function(msg, reader) {
  while (reader.nextField()) {
    if (reader.isEndGroup()) {
      break;
    }
    var field = reader.getFieldNumber();
    switch (field) {
    case 1:
      var value = /** @type {string} */ (reader.readStringRequireUtf8());
      msg.setOverloadId(value);
      break;
    case 2:
      var value = new proto.google.api.expr.v1alpha1.Type;
      reader.readMessage(value,proto.google.api.expr.v1alpha1.Type.deserializeBinaryFromReader);
      msg.addParams(value);
      break;
    case 3:
      var value = /** @type {string} */ (reader.readStringRequireUtf8());
      msg.addTypeParams(value);
      break;
    case 4:
      var value = new proto.google.api.expr.v1alpha1.Type;
      reader.readMessage(value,proto.google.api.expr.v1alpha1.Type.deserializeBinaryFromReader);
      msg.setResultType(value);
      break;
    case 5:
      var value = /** @type {boolean} */ (reader.readBool());
      msg.setIsInstanceFunction(value);
      break;
    case 6:
      var value = /** @type {string} */ (reader.readStringRequireUtf8());
      msg.setDoc(value);
      break;
    default:
      reader.skipField();
      break;
    }
  }
  return msg;
};


/**
 * Serializes the message to binary data (in protobuf wire format).
 * @return {!Uint8Array}
 */
proto.google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.prototype.serializeBinary = function() {
  var writer = new jspb.BinaryWriter();
  proto.google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.serializeBinaryToWriter(this, writer);
  return writer.getResultBuffer();
};


/**
 * Serializes the given message to binary data (in protobuf wire
 * format), writing to the given BinaryWriter.
 * @param {!proto.google.api.expr.v1alpha1.Decl.FunctionDecl.Overload} message
 * @param {!jspb.BinaryWriter} writer
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.serializeBinaryToWriter = function(message, writer) {
  var f = undefined;
  f = message.getOverloadId();
  if (f.length > 0) {
    writer.writeString(
      1,
      f
    );
  }
  f = message.getParamsList();
  if (f.length > 0) {
    writer.writeRepeatedMessage(
      2,
      f,
      proto.google.api.expr.v1alpha1.Type.serializeBinaryToWriter
    );
  }
  f = message.getTypeParamsList();
  if (f.length > 0) {
    writer.writeRepeatedString(
      3,
      f
    );
  }
  f = message.getResultType();
  if (f != null) {
    writer.writeMessage(
      4,
      f,
      proto.google.api.expr.v1alpha1.Type.serializeBinaryToWriter
    );
  }
  f = message.getIsInstanceFunction();
  if (f) {
    writer.writeBool(
      5,
      f
    );
  }
  f = message.getDoc();
  if (f.length > 0) {
    writer.writeString(
      6,
      f
    );
  }
};


/**
 * optional string overload_id = 1;
 * @return {string}
 */
proto.google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.prototype.getOverloadId = function() {
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};


/**
 * @param {string} value
 * @return {!proto.google.api.expr.v1alpha1.Decl.FunctionDecl.Overload} returns this
 */
proto.google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.prototype.setOverloadId = function(value) {
  return jspb.Message.setProto3StringField(this, 1, value);
};


/**
 * repeated Type params = 2;
 * @return {!Array<!proto.google.api.expr.v1alpha1.Type>}
 */
proto.google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.prototype.getParamsList = function() {
  return /** @type{!Array<!proto.google.api.expr.v1alpha1.Type>} */ (
    jspb.Message.getRepeatedWrapperField(this, proto.google.api.expr.v1alpha1.Type, 2));
};


/**
 * @param {!Array<!proto.google.api.expr.v1alpha1.Type>} value
 * @return {!proto.google.api.expr.v1alpha1.Decl.FunctionDecl.Overload} returns this
*/
proto.google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.prototype.setParamsList = function(value) {
  return jspb.Message.setRepeatedWrapperField(this, 2, value);
};


/**
 * @param {!proto.google.api.expr.v1alpha1.Type=} opt_value
 * @param {number=} opt_index
 * @return {!proto.google.api.expr.v1alpha1.Type}
 */
proto.google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.prototype.addParams = function(opt_value, opt_index) {
  return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.google.api.expr.v1alpha1.Type, opt_index);
};


/**
 * Clears the list making it empty but non-null.
 * @return {!proto.google.api.expr.v1alpha1.Decl.FunctionDecl.Overload} returns this
 */
proto.google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.prototype.clearParamsList = function() {
  return this.setParamsList([]);
};


/**
 * repeated string type_params = 3;
 * @return {!Array<string>}
 */
proto.google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.prototype.getTypeParamsList = function() {
  return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
};


/**
 * @param {!Array<string>} value
 * @return {!proto.google.api.expr.v1alpha1.Decl.FunctionDecl.Overload} returns this
 */
proto.google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.prototype.setTypeParamsList = function(value) {
  return jspb.Message.setField(this, 3, value || []);
};


/**
 * @param {string} value
 * @param {number=} opt_index
 * @return {!proto.google.api.expr.v1alpha1.Decl.FunctionDecl.Overload} returns this
 */
proto.google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.prototype.addTypeParams = function(value, opt_index) {
  return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
};


/**
 * Clears the list making it empty but non-null.
 * @return {!proto.google.api.expr.v1alpha1.Decl.FunctionDecl.Overload} returns this
 */
proto.google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.prototype.clearTypeParamsList = function() {
  return this.setTypeParamsList([]);
};


/**
 * optional Type result_type = 4;
 * @return {?proto.google.api.expr.v1alpha1.Type}
 */
proto.google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.prototype.getResultType = function() {
  return /** @type{?proto.google.api.expr.v1alpha1.Type} */ (
    jspb.Message.getWrapperField(this, proto.google.api.expr.v1alpha1.Type, 4));
};


/**
 * @param {?proto.google.api.expr.v1alpha1.Type|undefined} value
 * @return {!proto.google.api.expr.v1alpha1.Decl.FunctionDecl.Overload} returns this
*/
proto.google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.prototype.setResultType = function(value) {
  return jspb.Message.setWrapperField(this, 4, value);
};


/**
 * Clears the message field making it undefined.
 * @return {!proto.google.api.expr.v1alpha1.Decl.FunctionDecl.Overload} returns this
 */
proto.google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.prototype.clearResultType = function() {
  return this.setResultType(undefined);
};


/**
 * Returns whether this field is set.
 * @return {boolean}
 */
proto.google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.prototype.hasResultType = function() {
  return jspb.Message.getField(this, 4) != null;
};


/**
 * optional bool is_instance_function = 5;
 * @return {boolean}
 */
proto.google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.prototype.getIsInstanceFunction = function() {
  return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false));
};


/**
 * @param {boolean} value
 * @return {!proto.google.api.expr.v1alpha1.Decl.FunctionDecl.Overload} returns this
 */
proto.google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.prototype.setIsInstanceFunction = function(value) {
  return jspb.Message.setProto3BooleanField(this, 5, value);
};


/**
 * optional string doc = 6;
 * @return {string}
 */
proto.google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.prototype.getDoc = function() {
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
};


/**
 * @param {string} value
 * @return {!proto.google.api.expr.v1alpha1.Decl.FunctionDecl.Overload} returns this
 */
proto.google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.prototype.setDoc = function(value) {
  return jspb.Message.setProto3StringField(this, 6, value);
};


/**
 * repeated Overload overloads = 1;
 * @return {!Array<!proto.google.api.expr.v1alpha1.Decl.FunctionDecl.Overload>}
 */
proto.google.api.expr.v1alpha1.Decl.FunctionDecl.prototype.getOverloadsList = function() {
  return /** @type{!Array<!proto.google.api.expr.v1alpha1.Decl.FunctionDecl.Overload>} */ (
    jspb.Message.getRepeatedWrapperField(this, proto.google.api.expr.v1alpha1.Decl.FunctionDecl.Overload, 1));
};


/**
 * @param {!Array<!proto.google.api.expr.v1alpha1.Decl.FunctionDecl.Overload>} value
 * @return {!proto.google.api.expr.v1alpha1.Decl.FunctionDecl} returns this
*/
proto.google.api.expr.v1alpha1.Decl.FunctionDecl.prototype.setOverloadsList = function(value) {
  return jspb.Message.setRepeatedWrapperField(this, 1, value);
};


/**
 * @param {!proto.google.api.expr.v1alpha1.Decl.FunctionDecl.Overload=} opt_value
 * @param {number=} opt_index
 * @return {!proto.google.api.expr.v1alpha1.Decl.FunctionDecl.Overload}
 */
proto.google.api.expr.v1alpha1.Decl.FunctionDecl.prototype.addOverloads = function(opt_value, opt_index) {
  return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.google.api.expr.v1alpha1.Decl.FunctionDecl.Overload, opt_index);
};


/**
 * Clears the list making it empty but non-null.
 * @return {!proto.google.api.expr.v1alpha1.Decl.FunctionDecl} returns this
 */
proto.google.api.expr.v1alpha1.Decl.FunctionDecl.prototype.clearOverloadsList = function() {
  return this.setOverloadsList([]);
};


/**
 * optional string name = 1;
 * @return {string}
 */
proto.google.api.expr.v1alpha1.Decl.prototype.getName = function() {
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};


/**
 * @param {string} value
 * @return {!proto.google.api.expr.v1alpha1.Decl} returns this
 */
proto.google.api.expr.v1alpha1.Decl.prototype.setName = function(value) {
  return jspb.Message.setProto3StringField(this, 1, value);
};


/**
 * optional IdentDecl ident = 2;
 * @return {?proto.google.api.expr.v1alpha1.Decl.IdentDecl}
 */
proto.google.api.expr.v1alpha1.Decl.prototype.getIdent = function() {
  return /** @type{?proto.google.api.expr.v1alpha1.Decl.IdentDecl} */ (
    jspb.Message.getWrapperField(this, proto.google.api.expr.v1alpha1.Decl.IdentDecl, 2));
};


/**
 * @param {?proto.google.api.expr.v1alpha1.Decl.IdentDecl|undefined} value
 * @return {!proto.google.api.expr.v1alpha1.Decl} returns this
*/
proto.google.api.expr.v1alpha1.Decl.prototype.setIdent = function(value) {
  return jspb.Message.setOneofWrapperField(this, 2, proto.google.api.expr.v1alpha1.Decl.oneofGroups_[0], value);
};


/**
 * Clears the message field making it undefined.
 * @return {!proto.google.api.expr.v1alpha1.Decl} returns this
 */
proto.google.api.expr.v1alpha1.Decl.prototype.clearIdent = function() {
  return this.setIdent(undefined);
};


/**
 * Returns whether this field is set.
 * @return {boolean}
 */
proto.google.api.expr.v1alpha1.Decl.prototype.hasIdent = function() {
  return jspb.Message.getField(this, 2) != null;
};


/**
 * optional FunctionDecl function = 3;
 * @return {?proto.google.api.expr.v1alpha1.Decl.FunctionDecl}
 */
proto.google.api.expr.v1alpha1.Decl.prototype.getFunction = function() {
  return /** @type{?proto.google.api.expr.v1alpha1.Decl.FunctionDecl} */ (
    jspb.Message.getWrapperField(this, proto.google.api.expr.v1alpha1.Decl.FunctionDecl, 3));
};


/**
 * @param {?proto.google.api.expr.v1alpha1.Decl.FunctionDecl|undefined} value
 * @return {!proto.google.api.expr.v1alpha1.Decl} returns this
*/
proto.google.api.expr.v1alpha1.Decl.prototype.setFunction = function(value) {
  return jspb.Message.setOneofWrapperField(this, 3, proto.google.api.expr.v1alpha1.Decl.oneofGroups_[0], value);
};


/**
 * Clears the message field making it undefined.
 * @return {!proto.google.api.expr.v1alpha1.Decl} returns this
 */
proto.google.api.expr.v1alpha1.Decl.prototype.clearFunction = function() {
  return this.setFunction(undefined);
};


/**
 * Returns whether this field is set.
 * @return {boolean}
 */
proto.google.api.expr.v1alpha1.Decl.prototype.hasFunction = function() {
  return jspb.Message.getField(this, 3) != null;
};



/**
 * List of repeated fields within this message type.
 * @private {!Array<number>}
 * @const
 */
proto.google.api.expr.v1alpha1.Reference.repeatedFields_ = [3];



if (jspb.Message.GENERATE_TO_OBJECT) {
/**
 * Creates an object representation of this proto.
 * Field names that are reserved in JavaScript and will be renamed to pb_name.
 * Optional fields that are not set will be set to undefined.
 * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
 * For the list of reserved names please see:
 *     net/proto2/compiler/js/internal/generator.cc#kKeyword.
 * @param {boolean=} opt_includeInstance Deprecated. whether to include the
 *     JSPB instance for transitional soy proto support:
 *     http://goto/soy-param-migration
 * @return {!Object}
 */
proto.google.api.expr.v1alpha1.Reference.prototype.toObject = function(opt_includeInstance) {
  return proto.google.api.expr.v1alpha1.Reference.toObject(opt_includeInstance, this);
};


/**
 * Static version of the {@see toObject} method.
 * @param {boolean|undefined} includeInstance Deprecated. Whether to include
 *     the JSPB instance for transitional soy proto support:
 *     http://goto/soy-param-migration
 * @param {!proto.google.api.expr.v1alpha1.Reference} msg The msg instance to transform.
 * @return {!Object}
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.google.api.expr.v1alpha1.Reference.toObject = function(includeInstance, msg) {
  var f, obj = {
name: jspb.Message.getFieldWithDefault(msg, 1, ""),
overloadIdList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
value: (f = msg.getValue()) && google_api_expr_v1alpha1_syntax_pb.Constant.toObject(includeInstance, f)
  };

  if (includeInstance) {
    obj.$jspbMessageInstance = msg;
  }
  return obj;
};
}


/**
 * Deserializes binary data (in protobuf wire format).
 * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
 * @return {!proto.google.api.expr.v1alpha1.Reference}
 */
proto.google.api.expr.v1alpha1.Reference.deserializeBinary = function(bytes) {
  var reader = new jspb.BinaryReader(bytes);
  var msg = new proto.google.api.expr.v1alpha1.Reference;
  return proto.google.api.expr.v1alpha1.Reference.deserializeBinaryFromReader(msg, reader);
};


/**
 * Deserializes binary data (in protobuf wire format) from the
 * given reader into the given message object.
 * @param {!proto.google.api.expr.v1alpha1.Reference} msg The message object to deserialize into.
 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
 * @return {!proto.google.api.expr.v1alpha1.Reference}
 */
proto.google.api.expr.v1alpha1.Reference.deserializeBinaryFromReader = function(msg, reader) {
  while (reader.nextField()) {
    if (reader.isEndGroup()) {
      break;
    }
    var field = reader.getFieldNumber();
    switch (field) {
    case 1:
      var value = /** @type {string} */ (reader.readStringRequireUtf8());
      msg.setName(value);
      break;
    case 3:
      var value = /** @type {string} */ (reader.readStringRequireUtf8());
      msg.addOverloadId(value);
      break;
    case 4:
      var value = new google_api_expr_v1alpha1_syntax_pb.Constant;
      reader.readMessage(value,google_api_expr_v1alpha1_syntax_pb.Constant.deserializeBinaryFromReader);
      msg.setValue(value);
      break;
    default:
      reader.skipField();
      break;
    }
  }
  return msg;
};


/**
 * Serializes the message to binary data (in protobuf wire format).
 * @return {!Uint8Array}
 */
proto.google.api.expr.v1alpha1.Reference.prototype.serializeBinary = function() {
  var writer = new jspb.BinaryWriter();
  proto.google.api.expr.v1alpha1.Reference.serializeBinaryToWriter(this, writer);
  return writer.getResultBuffer();
};


/**
 * Serializes the given message to binary data (in protobuf wire
 * format), writing to the given BinaryWriter.
 * @param {!proto.google.api.expr.v1alpha1.Reference} message
 * @param {!jspb.BinaryWriter} writer
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.google.api.expr.v1alpha1.Reference.serializeBinaryToWriter = function(message, writer) {
  var f = undefined;
  f = message.getName();
  if (f.length > 0) {
    writer.writeString(
      1,
      f
    );
  }
  f = message.getOverloadIdList();
  if (f.length > 0) {
    writer.writeRepeatedString(
      3,
      f
    );
  }
  f = message.getValue();
  if (f != null) {
    writer.writeMessage(
      4,
      f,
      google_api_expr_v1alpha1_syntax_pb.Constant.serializeBinaryToWriter
    );
  }
};


/**
 * optional string name = 1;
 * @return {string}
 */
proto.google.api.expr.v1alpha1.Reference.prototype.getName = function() {
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};


/**
 * @param {string} value
 * @return {!proto.google.api.expr.v1alpha1.Reference} returns this
 */
proto.google.api.expr.v1alpha1.Reference.prototype.setName = function(value) {
  return jspb.Message.setProto3StringField(this, 1, value);
};


/**
 * repeated string overload_id = 3;
 * @return {!Array<string>}
 */
proto.google.api.expr.v1alpha1.Reference.prototype.getOverloadIdList = function() {
  return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
};


/**
 * @param {!Array<string>} value
 * @return {!proto.google.api.expr.v1alpha1.Reference} returns this
 */
proto.google.api.expr.v1alpha1.Reference.prototype.setOverloadIdList = function(value) {
  return jspb.Message.setField(this, 3, value || []);
};


/**
 * @param {string} value
 * @param {number=} opt_index
 * @return {!proto.google.api.expr.v1alpha1.Reference} returns this
 */
proto.google.api.expr.v1alpha1.Reference.prototype.addOverloadId = function(value, opt_index) {
  return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
};


/**
 * Clears the list making it empty but non-null.
 * @return {!proto.google.api.expr.v1alpha1.Reference} returns this
 */
proto.google.api.expr.v1alpha1.Reference.prototype.clearOverloadIdList = function() {
  return this.setOverloadIdList([]);
};


/**
 * optional Constant value = 4;
 * @return {?proto.google.api.expr.v1alpha1.Constant}
 */
proto.google.api.expr.v1alpha1.Reference.prototype.getValue = function() {
  return /** @type{?proto.google.api.expr.v1alpha1.Constant} */ (
    jspb.Message.getWrapperField(this, google_api_expr_v1alpha1_syntax_pb.Constant, 4));
};


/**
 * @param {?proto.google.api.expr.v1alpha1.Constant|undefined} value
 * @return {!proto.google.api.expr.v1alpha1.Reference} returns this
*/
proto.google.api.expr.v1alpha1.Reference.prototype.setValue = function(value) {
  return jspb.Message.setWrapperField(this, 4, value);
};


/**
 * Clears the message field making it undefined.
 * @return {!proto.google.api.expr.v1alpha1.Reference} returns this
 */
proto.google.api.expr.v1alpha1.Reference.prototype.clearValue = function() {
  return this.setValue(undefined);
};


/**
 * Returns whether this field is set.
 * @return {boolean}
 */
proto.google.api.expr.v1alpha1.Reference.prototype.hasValue = function() {
  return jspb.Message.getField(this, 4) != null;
};


goog.object.extend(exports, proto.google.api.expr.v1alpha1);
